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

Unified Diff: chrome/common/thumbnail_score.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 months 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
Index: chrome/common/thumbnail_score.cc
diff --git a/chrome/common/thumbnail_score.cc b/chrome/common/thumbnail_score.cc
index e2f41a0feb36b28243208c2b50c71a98efcd4fb8..ee9a03189f48d77e7552faa3291764bc6d93f614 100644
--- a/chrome/common/thumbnail_score.cc
+++ b/chrome/common/thumbnail_score.cc
@@ -70,15 +70,16 @@ bool ThumbnailScore::Equals(const ThumbnailScore& rhs) const {
}
std::string ThumbnailScore::ToString() const {
- return StringPrintf("boring_score: %f, at_top %d, good_clipping %d, "
- "load_completed: %d, "
- "time_at_snapshot: %f, redirect_hops_from_dest: %d",
- boring_score,
- at_top,
- good_clipping,
- load_completed,
- time_at_snapshot.ToDoubleT(),
- redirect_hops_from_dest);
+ return base::StringPrintf(
+ "boring_score: %f, at_top %d, good_clipping %d, "
+ "load_completed: %d, "
+ "time_at_snapshot: %f, redirect_hops_from_dest: %d",
+ boring_score,
+ at_top,
+ good_clipping,
+ load_completed,
+ time_at_snapshot.ToDoubleT(),
+ redirect_hops_from_dest);
}
bool ShouldReplaceThumbnailWith(const ThumbnailScore& current,

Powered by Google App Engine
This is Rietveld 408576698