| 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 078e1e9a51d32d72dc496ba44cea6f36a4f4b4b0..f0171078ff2836ea0552433f9c9e1a3543fed63d 100644
|
| --- a/sync/internal_api/js_sync_manager_observer.cc
|
| +++ b/sync/internal_api/js_sync_manager_observer.cc
|
| @@ -131,10 +131,12 @@ void JsSyncManagerObserver::OnInitializationComplete(
|
| // Ignore the |js_backend| argument; it's not really convertible to
|
| // JSON anyway.
|
|
|
| - DictionaryValue* details = new DictionaryValue();
|
| - details->Set("restoredTypes", ModelTypeSetToValue(restored_types));
|
| + DictionaryValue details;
|
| + details.Set("restoredTypes", ModelTypeSetToValue(restored_types));
|
|
|
| - HandleJsEvent(FROM_HERE, "onInitializationComplete", JsEventDetails(details));
|
| + HandleJsEvent(FROM_HERE,
|
| + "onInitializationComplete",
|
| + JsEventDetails(&details));
|
| }
|
|
|
| void JsSyncManagerObserver::OnStopSyncingPermanently() {
|
|
|