Commit 2ea43a09 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/themes.

This CL was uploaded by git cl split.

R=pkotwicz@chromium.org

Bug: 809610
Change-Id: I66ee3e218e4333f6d704e64b58003f100f1364e9
Reviewed-on: https://chromium-review.googlesource.com/c/1258352Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601635}
parent b661a5eb
......@@ -6,6 +6,7 @@
#include <memory>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
......@@ -209,7 +210,7 @@ class ThemeSyncableServiceTest : public testing::Test {
FakeThemeService* BuildForProfile(Profile* profile) {
return static_cast<FakeThemeService*>(
ThemeServiceFactory::GetInstance()->SetTestingFactoryAndUse(
profile, &BuildMockThemeService));
profile, base::BindRepeating(&BuildMockThemeService)));
}
syncer::SyncDataList MakeThemeDataList(
......
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