Commit a66aa448 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/supervised_user.

This CL was uploaded by git cl split.

R=pam@chromium.org

Bug: 809610
Change-Id: I702004601120d3c855ec3a1b1670358ee9b57fa8
Reviewed-on: https://chromium-review.googlesource.com/c/1297414Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602379}
parent 5ff40c0e
...@@ -31,9 +31,10 @@ class ChildAccountServiceTest : public ::testing::Test { ...@@ -31,9 +31,10 @@ class ChildAccountServiceTest : public ::testing::Test {
void SetUp() override { void SetUp() override {
TestingProfile::Builder builder; TestingProfile::Builder builder;
builder.AddTestingFactory(ChromeSigninClientFactory::GetInstance(), builder.AddTestingFactory(ChromeSigninClientFactory::GetInstance(),
BuildTestSigninClient); base::BindRepeating(&BuildTestSigninClient));
builder.AddTestingFactory(GaiaCookieManagerServiceFactory::GetInstance(), builder.AddTestingFactory(
BuildFakeGaiaCookieManagerService); GaiaCookieManagerServiceFactory::GetInstance(),
base::BindRepeating(&BuildFakeGaiaCookieManagerService));
profile_ = builder.Build(); profile_ = builder.Build();
gaia_cookie_manager_service_ = static_cast<FakeGaiaCookieManagerService*>( gaia_cookie_manager_service_ = static_cast<FakeGaiaCookieManagerService*>(
GaiaCookieManagerServiceFactory::GetForProfile(profile_.get())); GaiaCookieManagerServiceFactory::GetForProfile(profile_.get()));
......
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