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