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() { |