diff options
-rw-r--r-- | chrome/browser/profile.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc index 570371b..acf4802 100644 --- a/chrome/browser/profile.cc +++ b/chrome/browser/profile.cc @@ -1647,6 +1647,8 @@ TokenService* ProfileImpl::GetTokenService() { } ProfileSyncService* ProfileImpl::GetProfileSyncService() { + if (!ProfileSyncService::IsSyncEnabled()) + return NULL; if (!sync_service_.get()) InitSyncService(); return sync_service_.get(); |