| Index: components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| diff --git a/components/keyed_service/ios/browser_state_keyed_service_factory.cc b/components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| index c5279912454907fc1e9fdaf74e7abe6a3668540a..7c75278f81efb92e03e9251b033023f53b92efe1 100644
|
| --- a/components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| +++ b/components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| @@ -74,9 +74,13 @@ void BrowserStateKeyedServiceFactory::BrowserStateDestroyed(
|
| KeyedServiceFactory::ContextDestroyed(context);
|
| }
|
|
|
| -KeyedService* BrowserStateKeyedServiceFactory::BuildServiceInstanceFor(
|
| +scoped_ptr<KeyedService>
|
| +BrowserStateKeyedServiceFactory::BuildServiceInstanceFor(
|
| base::SupportsUserData* context) const {
|
| - return BuildServiceInstanceFor(static_cast<web::BrowserState*>(context));
|
| + // TODO(isherman): The wrapped BuildServiceInstanceFor() should return a
|
| + // scoped_ptr as well.
|
| + return make_scoped_ptr(
|
| + BuildServiceInstanceFor(static_cast<web::BrowserState*>(context)));
|
| }
|
|
|
| bool BrowserStateKeyedServiceFactory::IsOffTheRecord(
|
|
|