Index: chrome/browser/sync/profile_sync_service_factory.cc |
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc |
index 95c911af85bd3b4dbfd1fb59bf5315dde531e072..b4a0f8abd40c5b7f226a5cdd9b20369f1902a236 100644 |
--- a/chrome/browser/sync/profile_sync_service_factory.cc |
+++ b/chrome/browser/sync/profile_sync_service_factory.cc |
@@ -133,11 +133,13 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor( |
browser_defaults::kSyncAutoStarts ? browser_sync::AUTO_START |
: browser_sync::MANUAL_START; |
ProfileSyncService* pss = new ProfileSyncService( |
- new ProfileSyncComponentsFactoryImpl(profile, |
- CommandLine::ForCurrentProcess(), |
- sync_service_url, |
- token_service, |
- url_request_context_getter), |
+ scoped_ptr<ProfileSyncComponentsFactory>( |
+ new ProfileSyncComponentsFactoryImpl( |
+ profile, |
+ CommandLine::ForCurrentProcess(), |
+ sync_service_url, |
+ token_service, |
+ url_request_context_getter)), |
profile, |
signin_wrapper.Pass(), |
token_service, |