Commit 839b2e8d 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/safe_browsing/incident_reporting.

This CL was uploaded by git cl split.

R=robertshield@chromium.org

Bug: 809610
Change-Id: Id58fcdc5a649e33a68effc8e774be09beb930ed0
Reviewed-on: https://chromium-review.googlesource.com/1246169
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595837}
parent c290db46
...@@ -51,8 +51,7 @@ ...@@ -51,8 +51,7 @@
namespace { namespace {
// A BrowserContextKeyedServiceFactory::TestingFactoryFunction that creates a // A testing factory that creates a HistoryService for a TestingProfile.
// HistoryService for a TestingProfile.
std::unique_ptr<KeyedService> BuildHistoryService( std::unique_ptr<KeyedService> BuildHistoryService(
content::BrowserContext* context) { content::BrowserContext* context) {
TestingProfile* profile = static_cast<TestingProfile*>(context); TestingProfile* profile = static_cast<TestingProfile*>(context);
......
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