| Index: components/sync/driver/glue/sync_backend_host_core.cc
|
| diff --git a/components/sync/driver/glue/sync_backend_host_core.cc b/components/sync/driver/glue/sync_backend_host_core.cc
|
| index 6bf962a14e09b3ff6231476bc48b148181364e20..ba3169d67ac3d46499cf06b94eb8cbacc011a86a 100644
|
| --- a/components/sync/driver/glue/sync_backend_host_core.cc
|
| +++ b/components/sync/driver/glue/sync_backend_host_core.cc
|
| @@ -153,7 +153,8 @@ void SyncBackendHostCore::OnInitializationComplete(
|
| bool success,
|
| const syncer::ModelTypeSet restored_types) {
|
| DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread());
|
| -
|
| + LOG(ERROR) << "@@@@@ SyncBackendHostCore::OnInitializationComplete " << success;
|
| + DCHECK(success);
|
| if (!success) {
|
| DoDestroySyncManager(syncer::STOP_SYNC);
|
| host_.Call(FROM_HERE,
|
| @@ -435,6 +436,7 @@ void SyncBackendHostCore::DoInitialize(
|
| options->report_unrecoverable_error_function;
|
| args.cancelation_signal = &stop_syncing_signal_;
|
| args.saved_nigori_state = std::move(options->saved_nigori_state);
|
| + LOG(ERROR) << "@@@@@ SyncBackendHostCore::DoInitialize";
|
| sync_manager_->Init(&args);
|
| }
|
|
|
| @@ -477,12 +479,15 @@ void SyncBackendHostCore::DoInitialProcessControlTypes() {
|
| // which is called at the end of every sync cycle.
|
| // TODO(zea): eventually add an experiment handler and initialize it here.
|
|
|
| + LOG(ERROR) << "@@@@@ SyncBackendHostCore::DoInitialProcessControlTypes beg";
|
| +
|
| if (!sync_manager_->GetUserShare()) { // NULL in some tests.
|
| DVLOG(1) << "Skipping initialization of DeviceInfo";
|
| host_.Call(FROM_HERE,
|
| &SyncBackendHostImpl::HandleInitializationFailureOnFrontendLoop);
|
| return;
|
| }
|
| + LOG(ERROR) << "@@@@@ SyncBackendHostCore::DoInitialProcessControlTypes mid";
|
|
|
| if (!sync_manager_->InitialSyncEndedTypes().HasAll(syncer::ControlTypes())) {
|
| LOG(ERROR) << "Failed to download control types";
|
| @@ -491,6 +496,7 @@ void SyncBackendHostCore::DoInitialProcessControlTypes() {
|
| return;
|
| }
|
|
|
| + LOG(ERROR) << "@@@@@ SyncBackendHostCore::DoInitialProcessControlTypes done";
|
| host_.Call(FROM_HERE,
|
| &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop,
|
| js_backend_, debug_info_listener_,
|
|
|