Index: trunk/src/chrome/browser/sync/profile_sync_service_factory.cc |
=================================================================== |
--- trunk/src/chrome/browser/sync/profile_sync_service_factory.cc (revision 201967) |
+++ trunk/src/chrome/browser/sync/profile_sync_service_factory.cc (working copy) |
@@ -39,6 +39,10 @@ |
if (!ProfileSyncService::IsSyncEnabled()) |
return NULL; |
+ // Do not start sync on the import process. |
+ if (ProfileManager::IsImportProcess(*CommandLine::ForCurrentProcess())) |
+ return NULL; |
+ |
return static_cast<ProfileSyncService*>( |
GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |