Commit 0aa11802 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

Remove direct uses of TestingFunctionFactory

Replace them with uses of TestingFactory which is based
on base::Callback<> instead of function pointers.

This converts uses in /chrome/browser/bookmarks.

This CL was uploaded by git cl split.

R=sky@chromium.org

Bug: 809610
Change-Id: I465d088e3eba92a29a1c03b1e73fb4ceb920a1e3
Reviewed-on: https://chromium-review.googlesource.com/1245730
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595851}
parent 6ae13a86
......@@ -43,9 +43,9 @@ ManagedBookmarkServiceFactory* ManagedBookmarkServiceFactory::GetInstance() {
}
// static
BrowserContextKeyedServiceFactory::TestingFactoryFunction
BrowserContextKeyedServiceFactory::TestingFactory
ManagedBookmarkServiceFactory::GetDefaultFactory() {
return &BuildManagedBookmarkService;
return base::BindRepeating(&BuildManagedBookmarkService);
}
// static
......
......@@ -27,7 +27,7 @@ class ManagedBookmarkServiceFactory : public BrowserContextKeyedServiceFactory {
public:
static bookmarks::ManagedBookmarkService* GetForProfile(Profile* profile);
static ManagedBookmarkServiceFactory* GetInstance();
static TestingFactoryFunction GetDefaultFactory();
static TestingFactory GetDefaultFactory();
static std::string GetManagedBookmarksDomain(Profile* profile);
......
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