Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6825)

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 438005: Enable sync by default on all platforms. (Closed)
Patch Set: Synced to head Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/bug_report_window_controller_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index d380578b38aacf614a40a6c43fad964a256995d0..ca95b979fb9840753e10cd27539ab1777df7889e 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() {
« no previous file with comments | « chrome/browser/cocoa/bug_report_window_controller_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698