| Index: chrome/browser/sync/glue/sync_backend_host.cc
|
| diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
|
| index dd4ced4cdd3d11cf10d74e6a4f43e12418d46efa..c68682e00d73e549f7765f903aea6f782c074590 100644
|
| --- a/chrome/browser/sync/glue/sync_backend_host.cc
|
| +++ b/chrome/browser/sync/glue/sync_backend_host.cc
|
| @@ -420,8 +420,11 @@ void SyncBackendHost::Core::OnInitializationComplete(
|
| 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 @@ void SyncBackendHost::Core::DoInitialize(const DoInitializeOptions& options) {
|
| 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() {
|
|
|