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

Unified Diff: trunk/src/chrome/browser/sync/startup_controller.cc

Issue 186883006: Revert 254678 "sync: turn on deferred startup." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 months 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 | « no previous file | trunk/src/chrome/browser/sync/startup_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/sync/startup_controller.cc
===================================================================
--- trunk/src/chrome/browser/sync/startup_controller.cc (revision 254811)
+++ trunk/src/chrome/browser/sync/startup_controller.cc (working copy)
@@ -72,8 +72,8 @@
start_up_time_ = base::Time::Now();
if (deferred_option == STARTUP_BACKEND_DEFERRED &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSyncDisableDeferredStartup) &&
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSyncEnableDeferredStartup) &&
sync_prefs_->GetPreferredDataTypes(registered_types_)
.Has(syncer::SESSIONS)) {
if (first_start) {
@@ -152,8 +152,8 @@
}
void StartupController::OnFallbackStartupTimerExpired() {
- DCHECK(!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSyncDisableDeferredStartup));
+ DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSyncEnableDeferredStartup));
if (!start_backend_time_.is_null())
return;
@@ -179,8 +179,8 @@
}
void StartupController::OnDataTypeRequestsSyncStartup(syncer::ModelType type) {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSyncDisableDeferredStartup)) {
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSyncEnableDeferredStartup)) {
DVLOG(2) << "Ignoring data type request for sync startup: "
<< syncer::ModelTypeToString(type);
return;
« no previous file with comments | « no previous file | trunk/src/chrome/browser/sync/startup_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698