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

Unified Diff: components/sync/driver/glue/sync_backend_host_core.cc

Issue 2106743002: WIP: Local sync only... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix after rebase. Created 4 years, 3 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 | « components/sync/core_impl/sync_manager_impl.cc ('k') | components/sync/driver/startup_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_,
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.cc ('k') | components/sync/driver/startup_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698