diff options
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 22:33:04 +0000 |
---|---|---|
committer | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 22:33:04 +0000 |
commit | 7d3cbc90c089bb3ba5cb81a5abdc0846d5826def (patch) | |
tree | 8ad0db2d4581c8e935ed1b07c6b4147a5350a204 /dbus | |
parent | bb192b87059a76b89fbc20ad08347c28656e838d (diff) | |
download | chromium_src-7d3cbc90c089bb3ba5cb81a5abdc0846d5826def.zip chromium_src-7d3cbc90c089bb3ba5cb81a5abdc0846d5826def.tar.gz chromium_src-7d3cbc90c089bb3ba5cb81a5abdc0846d5826def.tar.bz2 |
[Cleanup] Remove StringPrintf from global namespace
use of StringPrintf now requires prefixing with base:: or a per-scope using directive
TBR'd:
abodenha: chrome/service
brettw: content, third_party, webkit
darin: base, chrome/browser, chrome/renderer
dgarret: courgette
enne: cc
fischmann: media
gbillock: sql
joi: google_apis,components
rsleevi: net, crypto
sky: chrome/test
thestig: printing, chrome/common,
tsepez: ipc
wez: remoting
yfriedman: testing/android
NOTRY=true
R=brettw@chromium.org
TBR=joi@chromium.org, rsleevi@chromium.org, enne@chromium.org, thestig@chromium.org, darin@chromium.org, abodenha@chromium.org, sky@chromium.org, dgarret@chromium.org, tsepez@chromium.org, fishman@chromium.org, wez@chromium.org, gbillock@chromium.org, yfriedman@chromium.org
BUG=
Review URL: https://codereview.chromium.org/12767006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus_statistics.cc | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/dbus/dbus_statistics.cc b/dbus/dbus_statistics.cc index 8368c4c..eeb2f0ac 100644 --- a/dbus/dbus_statistics.cc +++ b/dbus/dbus_statistics.cc @@ -220,34 +220,35 @@ std::string GetAsString(ShowInString show, FormatString format) { if (show >= SHOW_METHOD) line += "." + stat->method; } - line += StringPrintf(":"); + line += base::StringPrintf(":"); if (sent_blocking) { - line += StringPrintf(" Sent (BLOCKING):"); + line += base::StringPrintf(" Sent (BLOCKING):"); if (format == FORMAT_TOTALS) - line += StringPrintf(" %d", sent_blocking); + line += base::StringPrintf(" %d", sent_blocking); else if (format == FORMAT_PER_MINUTE) - line += StringPrintf(" %d/min", sent_blocking / dminutes); + line += base::StringPrintf(" %d/min", sent_blocking / dminutes); else if (format == FORMAT_ALL) - line += StringPrintf(" %d (%d/min)", - sent_blocking, sent_blocking / dminutes); + line += base::StringPrintf(" %d (%d/min)", + sent_blocking, sent_blocking / dminutes); } if (sent) { - line += StringPrintf(" Sent:"); + line += base::StringPrintf(" Sent:"); if (format == FORMAT_TOTALS) - line += StringPrintf(" %d", sent); + line += base::StringPrintf(" %d", sent); else if (format == FORMAT_PER_MINUTE) - line += StringPrintf(" %d/min", sent / dminutes); + line += base::StringPrintf(" %d/min", sent / dminutes); else if (format == FORMAT_ALL) - line += StringPrintf(" %d (%d/min)", sent, sent / dminutes); + line += base::StringPrintf(" %d (%d/min)", sent, sent / dminutes); } if (received) { - line += StringPrintf(" Received:"); + line += base::StringPrintf(" Received:"); if (format == FORMAT_TOTALS) - line += StringPrintf(" %d", received); + line += base::StringPrintf(" %d", received); else if (format == FORMAT_PER_MINUTE) - line += StringPrintf(" %d/min", received / dminutes); + line += base::StringPrintf(" %d/min", received / dminutes); else if (format == FORMAT_ALL) - line += StringPrintf(" %d (%d/min)", received, received / dminutes); + line += base::StringPrintf( + " %d (%d/min)", received, received / dminutes); } result += line + "\n"; sent = 0; |