Convert indirect uses of TestingFactoryFunction

TestingFactoryFunction is a simple function pointer. It is
deprecated in favor of TestingFactory which is a Callback<>.
Convert indirect uses by using base::BindRepeating() in all
invocation of SetTestingFactory/AddTestingFactory.

This converts uses in src//chrome/browser/extensions.

This CL was uploaded by git cl split.

[email protected]

Bug: 809610
Change-Id: I8acd294b25decd9f81be9cb8b76c41f3302644af
Reviewed-on: https://chromium-review.googlesource.com/c/1258171
Commit-Queue: Sylvain Defresne <[email protected]>
Reviewed-by: Istiaque Ahmed <[email protected]>
Cr-Commit-Position: refs/heads/master@{#596632}
diff --git a/chrome/browser/extensions/update_install_gate_unittest.cc b/chrome/browser/extensions/update_install_gate_unittest.cc
index b27ca18a..7e1bf6a 100644
--- a/chrome/browser/extensions/update_install_gate_unittest.cc
+++ b/chrome/browser/extensions/update_install_gate_unittest.cc
@@ -6,6 +6,7 @@
 
 #include <memory>
 
+#include "base/bind.h"
 #include "base/command_line.h"
 #include "base/memory/ptr_util.h"
 #include "base/run_loop.h"
@@ -137,7 +138,7 @@
 
     event_router_ = static_cast<EventRouter*>(
         EventRouterFactory::GetInstance()->SetTestingFactoryAndUse(
-            profile_, &BuildEventRouter));
+            profile_, base::BindRepeating(&BuildEventRouter)));
 
     delayer_.reset(new UpdateInstallGate(service_));