Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2984)

Unified Diff: courgette/memory_monitor.cc

Issue 4974001: base: Get rid of 'using' declaration of StringAppendF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/adjustment_method_2.cc ('k') | net/http/http_cache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/memory_monitor.cc
diff --git a/courgette/memory_monitor.cc b/courgette/memory_monitor.cc
index 26ce81f092e9cf4d42983c66ae93ad1953dc93c1..dba8a88cb1d025a17a2d6aa2ceb7a914c202a1fb 100644
--- a/courgette/memory_monitor.cc
+++ b/courgette/memory_monitor.cc
@@ -47,8 +47,8 @@ struct H {
}
if (!print) return;
std::string o;
- StringAppendF(&o, "%u:", tick_ + d_tick_);
- StringAppendF(&o, " (%c%s)", sign, fmt(w).c_str());
+ base::StringAppendF(&o, "%u:", tick_ + d_tick_);
+ base::StringAppendF(&o, " (%c%s)", sign, fmt(w).c_str());
size_t sum = 0;
for (M::iterator p = c_.begin(); p != c_.end(); ++p) {
size_t s = p->first;
@@ -56,13 +56,13 @@ struct H {
if (n) {
if (s*n >= 64*1024)
if (n == 1)
- StringAppendF(&o, " %s", fmt(s).c_str());
+ base::StringAppendF(&o, " %s", fmt(s).c_str());
else
- StringAppendF(&o, " %s*%u", fmt(s).c_str(), n);
+ base::StringAppendF(&o, " %s*%u", fmt(s).c_str(), n);
sum += s*n;
}
}
- StringAppendF(&o, " = %s", fmt(sum).c_str());
+ base::StringAppendF(&o, " = %s", fmt(sum).c_str());
LOG(INFO) << o;
//printf("%s\n", o.c_str());
if (sum > 200*1024*1024) {
« no previous file with comments | « courgette/adjustment_method_2.cc ('k') | net/http/http_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698