Commit 96434bf7 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/ui/views/frame.

This CL was uploaded by git cl split.

R=pkasting@chromium.org

Bug: 809610
Change-Id: Ib6b3670ddcac53d42e955d4cb51596b9f194e39a
Reviewed-on: https://chromium-review.googlesource.com/c/1258767
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600070}
parent c57807b5
...@@ -103,11 +103,11 @@ TestingProfile* TestWithBrowserView::CreateProfile() { ...@@ -103,11 +103,11 @@ TestingProfile* TestWithBrowserView::CreateProfile() {
// TemplateURLService is normally null during testing. Instant extended // TemplateURLService is normally null during testing. Instant extended
// needs this service so set a custom factory function. // needs this service so set a custom factory function.
TemplateURLServiceFactory::GetInstance()->SetTestingFactory( TemplateURLServiceFactory::GetInstance()->SetTestingFactory(
profile, &CreateTemplateURLService); profile, base::BindRepeating(&CreateTemplateURLService));
// TODO(jamescook): Eliminate this by introducing a mock toolbar or mock // TODO(jamescook): Eliminate this by introducing a mock toolbar or mock
// location bar. // location bar.
AutocompleteClassifierFactory::GetInstance()->SetTestingFactory( AutocompleteClassifierFactory::GetInstance()->SetTestingFactory(
profile, &CreateAutocompleteClassifier); profile, base::BindRepeating(&CreateAutocompleteClassifier));
// Configure the GaiaCookieManagerService to return no accounts. // Configure the GaiaCookieManagerService to return no accounts.
FakeGaiaCookieManagerService* gcms = FakeGaiaCookieManagerService* gcms =
......
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