Index: chrome/browser/sync/startup_controller.cc |
diff --git a/chrome/browser/sync/startup_controller.cc b/chrome/browser/sync/startup_controller.cc |
index bd6c0c469b78061f73c0faacb3d20dc4e675a30c..7cf9c57683885e49ca5c401363332640df513ca3 100644 |
--- a/chrome/browser/sync/startup_controller.cc |
+++ b/chrome/browser/sync/startup_controller.cc |
@@ -72,8 +72,8 @@ bool StartupController::StartUp(StartUpDeferredOption deferred_option) { |
start_up_time_ = base::Time::Now(); |
if (deferred_option == STARTUP_BACKEND_DEFERRED && |
- CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kSyncEnableDeferredStartup) && |
+ !CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kSyncDisableDeferredStartup) && |
sync_prefs_->GetPreferredDataTypes(registered_types_) |
.Has(syncer::SESSIONS)) { |
if (first_start) { |
@@ -152,8 +152,8 @@ bool StartupController::TryStart() { |
} |
void StartupController::OnFallbackStartupTimerExpired() { |
- DCHECK(CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kSyncEnableDeferredStartup)); |
+ DCHECK(!CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kSyncDisableDeferredStartup)); |
if (!start_backend_time_.is_null()) |
return; |
@@ -179,8 +179,8 @@ std::string StartupController::GetBackendInitializationStateString() const { |
} |
void StartupController::OnDataTypeRequestsSyncStartup(syncer::ModelType type) { |
- if (!CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kSyncEnableDeferredStartup)) { |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kSyncDisableDeferredStartup)) { |
DVLOG(2) << "Ignoring data type request for sync startup: " |
<< syncer::ModelTypeToString(type); |
return; |