diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-16 04:30:42 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-16 04:30:42 +0000 |
commit | 9be7a32aa4714bcd216fba8256f1e914443ad663 (patch) | |
tree | 271dc3c64602f7b1ca4255dfa2caac5f9c40e355 /sync/internal_api/js_mutation_event_observer.cc | |
parent | b0101d770f09d722dab872dd5dce34a6e631c5ed (diff) | |
download | chromium_src-9be7a32aa4714bcd216fba8256f1e914443ad663.zip chromium_src-9be7a32aa4714bcd216fba8256f1e914443ad663.tar.gz chromium_src-9be7a32aa4714bcd216fba8256f1e914443ad663.tar.bz2 |
Cleanup: Remove deprecated base::Value methods from sync. Use base::Value too.
Review URL: https://chromiumcodereview.appspot.com/12262057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/js_mutation_event_observer.cc')
-rw-r--r-- | sync/internal_api/js_mutation_event_observer.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sync/internal_api/js_mutation_event_observer.cc b/sync/internal_api/js_mutation_event_observer.cc index 262c7b5..2dd3e51 100644 --- a/sync/internal_api/js_mutation_event_observer.cc +++ b/sync/internal_api/js_mutation_event_observer.cc @@ -50,14 +50,14 @@ void JsMutationEventObserver::OnChangesApplied( if (!event_handler_.IsInitialized()) { return; } - DictionaryValue details; + base::DictionaryValue details; details.SetString("modelType", ModelTypeToString(model_type)); details.SetString("writeTransactionId", base::Int64ToString(write_transaction_id)); base::Value* changes_value = NULL; const size_t changes_size = changes.Get().size(); if (changes_size <= kChangeLimit) { - ListValue* changes_list = new ListValue(); + base::ListValue* changes_list = new base::ListValue(); for (ChangeRecordList::const_iterator it = changes.Get().begin(); it != changes.Get().end(); ++it) { changes_list->Append(it->ToValue()); @@ -65,7 +65,7 @@ void JsMutationEventObserver::OnChangesApplied( changes_value = changes_list; } else { changes_value = - Value::CreateStringValue( + new base::StringValue( base::Uint64ToString(static_cast<uint64>(changes_size)) + " changes"); } @@ -77,7 +77,7 @@ void JsMutationEventObserver::OnChangesComplete(ModelType model_type) { if (!event_handler_.IsInitialized()) { return; } - DictionaryValue details; + base::DictionaryValue details; details.SetString("modelType", ModelTypeToString(model_type)); HandleJsEvent(FROM_HERE, "onChangesComplete", JsEventDetails(&details)); } @@ -89,7 +89,7 @@ void JsMutationEventObserver::OnTransactionWrite( if (!event_handler_.IsInitialized()) { return; } - DictionaryValue details; + base::DictionaryValue details; details.Set("writeTransactionInfo", write_transaction_info.Get().ToValue(kChangeLimit)); details.Set("modelsWithChanges", |