Index: chrome/browser/sync/glue/sync_backend_host.cc |
=================================================================== |
--- chrome/browser/sync/glue/sync_backend_host.cc (revision 110386) |
+++ chrome/browser/sync/glue/sync_backend_host.cc (working copy) |
@@ -420,8 +420,11 @@ |
base::Bind(&Core::HandleInitializationCompletedOnFrontendLoop, this, |
js_backend, success)); |
- // Initialization is complete, so we can schedule recurring SaveChanges. |
- sync_loop_->PostTask(FROM_HERE, base::Bind(&Core::StartSavingChanges, this)); |
+ if (success) { |
+ // Initialization is complete, so we can schedule recurring SaveChanges. |
+ sync_loop_->PostTask(FROM_HERE, |
+ base::Bind(&Core::StartSavingChanges, this)); |
+ } |
} |
void SyncBackendHost::Core::OnAuthError(const AuthError& auth_error) { |
@@ -608,7 +611,7 @@ |
host_->sync_notifier_factory_.CreateSyncNotifier(), |
options.restored_key_for_bootstrapping, |
options.setup_for_test_mode); |
- DCHECK(success) << "Syncapi initialization failed!"; |
+ LOG_IF(ERROR, !success) << "Syncapi initialization failed!"; |
} |
void SyncBackendHost::Core::DoCheckServerReachable() { |