Index: components/keyed_service/content/browser_context_keyed_service_factory.cc |
diff --git a/components/keyed_service/content/browser_context_keyed_service_factory.cc b/components/keyed_service/content/browser_context_keyed_service_factory.cc |
index d7edb8ec24c2504a7993b0bb06330c1c137fbdde..db69459aa818ecf882f29113e5deec319d55dbce 100644 |
--- a/components/keyed_service/content/browser_context_keyed_service_factory.cc |
+++ b/components/keyed_service/content/browser_context_keyed_service_factory.cc |
@@ -85,10 +85,13 @@ void BrowserContextKeyedServiceFactory::BrowserContextDestroyed( |
KeyedServiceFactory::ContextDestroyed(context); |
} |
-KeyedService* BrowserContextKeyedServiceFactory::BuildServiceInstanceFor( |
+scoped_ptr<KeyedService> |
+BrowserContextKeyedServiceFactory::BuildServiceInstanceFor( |
base::SupportsUserData* context) const { |
- return BuildServiceInstanceFor( |
- static_cast<content::BrowserContext*>(context)); |
+ // TODO(isherman): The wrapped BuildServiceInstanceFor() should return a |
+ // scoped_ptr as well. |
+ return make_scoped_ptr( |
+ BuildServiceInstanceFor(static_cast<content::BrowserContext*>(context))); |
} |
bool BrowserContextKeyedServiceFactory::IsOffTheRecord( |