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

Unified Diff: chrome/renderer/printing/print_web_view_helper.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/renderer/printing/print_web_view_helper.cc
diff --git a/chrome/renderer/printing/print_web_view_helper.cc b/chrome/renderer/printing/print_web_view_helper.cc
index 6c7e00f4b636f6a12267c41e19d899718a66268c..f7526be718d5c874118cb5e03e5a25c3b9c167b6 100644
--- a/chrome/renderer/printing/print_web_view_helper.cc
+++ b/chrome/renderer/printing/print_web_view_helper.cc
@@ -63,7 +63,7 @@ void ExecuteScript(WebKit::WebFrame* frame,
const base::Value& parameters) {
std::string json;
base::JSONWriter::Write(&parameters, &json);
- std::string script = StringPrintf(script_format, json.c_str());
+ std::string script = base::StringPrintf(script_format, json.c_str());
frame->executeScript(WebKit::WebString(UTF8ToUTF16(script)));
}
@@ -438,7 +438,7 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
options->SetDouble("topMargin", page_layout.margin_top);
options->SetDouble("bottomMargin", page_layout.margin_bottom);
options->SetString("pageNumber",
- StringPrintf("%d/%d", page_number, total_pages));
+ base::StringPrintf("%d/%d", page_number, total_pages));
ExecuteScript(frame, kPageSetupScriptFormat, *options);

Powered by Google App Engine
This is Rietveld 408576698