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

Unified Diff: sync/internal_api/js_sync_manager_observer.cc

Issue 10520010: Not for review: Support sync init with missing or corrupt store (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Documentation Created 8 years, 6 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
Index: sync/internal_api/js_sync_manager_observer.cc
diff --git a/sync/internal_api/js_sync_manager_observer.cc b/sync/internal_api/js_sync_manager_observer.cc
index 5aa9dc34ca9632563c6070d89ad68eb49e302cbe..bdf2b7efc2a46b454bd6456266daddb6bd7509b7 100644
--- a/sync/internal_api/js_sync_manager_observer.cc
+++ b/sync/internal_api/js_sync_manager_observer.cc
@@ -125,13 +125,17 @@ void JsSyncManagerObserver::OnActionableError(
void JsSyncManagerObserver::OnInitializationComplete(
const WeakHandle<JsBackend>& js_backend,
- bool success) {
+ bool success, syncable::ModelTypeSet restored_types) {
if (!event_handler_.IsInitialized()) {
return;
}
// Ignore the |js_backend| argument; it's not really convertible to
// JSON anyway.
- HandleJsEvent(FROM_HERE, "onInitializationComplete", JsEventDetails());
+
+ DictionaryValue *details = new DictionaryValue();
+ details->Set("restoredTypes", ModelTypeSetToValue(restored_types));
+
+ HandleJsEvent(FROM_HERE, "onInitializationComplete", JsEventDetails(details));
}
void JsSyncManagerObserver::OnStopSyncingPermanently() {

Powered by Google App Engine
This is Rietveld 408576698