Commit c06b55ae authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

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/prerender.

This CL was uploaded by git cl split.

R=mattcary@chromium.org

Bug: 809610
Change-Id: I34264dec9e444fac342146dadbdf8453d3dad870
Reviewed-on: https://chromium-review.googlesource.com/c/1259036
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarMatthew Cary <mattcary@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596605}
parent 901b0155
...@@ -3093,8 +3093,9 @@ IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, AutosigninInPrerenderer) { ...@@ -3093,8 +3093,9 @@ IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, AutosigninInPrerenderer) {
base::ScopedAllowBlockingForTesting allow_blocking; base::ScopedAllowBlockingForTesting allow_blocking;
PasswordStoreFactory::GetInstance()->SetTestingFactory( PasswordStoreFactory::GetInstance()->SetTestingFactory(
current_browser()->profile(), current_browser()->profile(),
password_manager::BuildPasswordStore< base::BindRepeating(
content::BrowserContext, password_manager::TestPasswordStore>); &password_manager::BuildPasswordStore<
content::BrowserContext, password_manager::TestPasswordStore>));
} }
scoped_refptr<password_manager::TestPasswordStore> password_store = scoped_refptr<password_manager::TestPasswordStore> password_store =
static_cast<password_manager::TestPasswordStore*>( static_cast<password_manager::TestPasswordStore*>(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment