commit | 711ff6b9f705d5047c3f7bad1dbc06b437efbbab | [log] [tgz] |
---|---|---|
author | Sylvain Defresne <[email protected]> | Thu Oct 04 12:33:54 2018 |
committer | Commit Bot <[email protected]> | Thu Oct 04 12:33:54 2018 |
tree | d3cafe7e7bd5ef6f85f774a29e0735961c7e18fe | |
parent | 8c7d6baec2f7442ca5cd60556312efafe5f51a5f [diff] [blame] |
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_));