summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/sync/profile_sync_service.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index ca95b97..d380578 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -425,9 +425,11 @@ void ProfileSyncService::SyncEvent(SyncEventCodes code) {
}
bool ProfileSyncService::IsSyncEnabled() {
- // We have switches::kEnableSync just in case we need to change back to
- // sync-disabled-by-default on a platform.
+#if defined(OS_POSIX)
+ return CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableSync);
+#else
return !CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableSync);
+#endif
}
bool ProfileSyncService::ShouldPushChanges() {