summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_service_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/profile_sync_service_factory.cc')
-rw-r--r--chrome/browser/sync/profile_sync_service_factory.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc
index 95c911a..b4a0f8a 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,