From 1c0fb257023da8f7cb1b8d734b5873dd9eadc8bc Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" Date: Fri, 27 Jun 2014 19:10:38 +0000 Subject: Add base::SizeTToString. Change some users of base::Uint64ToString to base::SizeTToString. R=brettw@chromium.org,rlarocque@chromium.org Review URL: https://codereview.chromium.org/353693005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280375 0039d316-1c4b-4281-b951-d872f2087c98 --- sync/internal_api/js_mutation_event_observer.cc | 3 +-- sync/syncable/write_transaction_info.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'sync') diff --git a/sync/internal_api/js_mutation_event_observer.cc b/sync/internal_api/js_mutation_event_observer.cc index 3f1056f..b40693b 100644 --- a/sync/internal_api/js_mutation_event_observer.cc +++ b/sync/internal_api/js_mutation_event_observer.cc @@ -66,8 +66,7 @@ void JsMutationEventObserver::OnChangesApplied( } else { changes_value = new base::StringValue( - base::Uint64ToString(static_cast(changes_size)) + - " changes"); + base::SizeTToString(changes_size) + " changes"); } details.Set("changes", changes_value); HandleJsEvent(FROM_HERE, "onChangesApplied", JsEventDetails(&details)); diff --git a/sync/syncable/write_transaction_info.cc b/sync/syncable/write_transaction_info.cc index 3f69da8..a8a2327 100644 --- a/sync/syncable/write_transaction_info.cc +++ b/sync/syncable/write_transaction_info.cc @@ -37,8 +37,7 @@ base::DictionaryValue* WriteTransactionInfo::ToValue( } else { mutations_value = new base::StringValue( - base::Uint64ToString(static_cast(mutations_size)) + - " mutations"); + base::SizeTToString(mutations_size) + " mutations"); } dict->Set("mutations", mutations_value); return dict; -- cgit v1.1