Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: components/keyed_service/content/browser_context_keyed_service_factory.h

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/keyed_service/content/browser_context_keyed_service_factory.h
diff --git a/components/keyed_service/content/browser_context_keyed_service_factory.h b/components/keyed_service/content/browser_context_keyed_service_factory.h
index 24c34673baa2c8f119fffff52b0798750c09ba7a..5543bbdc1791df80758554c925d505518312dd65 100644
--- a/components/keyed_service/content/browser_context_keyed_service_factory.h
+++ b/components/keyed_service/content/browser_context_keyed_service_factory.h
@@ -40,7 +40,7 @@ class KEYED_SERVICE_EXPORT BrowserContextKeyedServiceFactory
// A function that supplies the instance of a KeyedService for a given
// BrowserContext. This is used primarily for testing, where we want to feed
// a specific mock into the BCKSF system.
- typedef KeyedService* (*TestingFactoryFunction)(
+ typedef scoped_ptr<KeyedService>(*TestingFactoryFunction)(
content::BrowserContext* context);
// Associates |factory| with |context| so that |factory| is used to create
@@ -130,7 +130,7 @@ class KEYED_SERVICE_EXPORT BrowserContextKeyedServiceFactory
user_prefs::PrefRegistrySyncable* registry) {}
// KeyedServiceFactory:
- KeyedService* BuildServiceInstanceFor(
+ scoped_ptr<KeyedService> BuildServiceInstanceFor(
base::SupportsUserData* context) const final;
bool IsOffTheRecord(base::SupportsUserData* context) const final;

Powered by Google App Engine
This is Rietveld 408576698