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

Unified Diff: chrome/service/cloud_print/cloud_print_helpers.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/service/cloud_print/cloud_print_helpers.cc
diff --git a/chrome/service/cloud_print/cloud_print_helpers.cc b/chrome/service/cloud_print/cloud_print_helpers.cc
index 6c38a653cf3650f43dbed5c2c596a5dd575de019..3e03e572e5aa2247bd2440050284a3f577e85a18 100644
--- a/chrome/service/cloud_print/cloud_print_helpers.cc
+++ b/chrome/service/cloud_print/cloud_print_helpers.cc
@@ -52,14 +52,14 @@ GURL GetUrlForJobStatusUpdate(const GURL& cloud_print_server_url,
GURL::Replacements replacements;
replacements.SetPathStr(path);
std::string query =
- StringPrintf("jobid=%s&status=%s&code=%d&message=%s"
- "&numpages=%d&pagesprinted=%d",
- job_id.c_str(),
- status_string.c_str(),
- details.platform_status_flags,
- details.status_message.c_str(),
- details.total_pages,
- details.pages_printed);
+ base::StringPrintf("jobid=%s&status=%s&code=%d&message=%s"
+ "&numpages=%d&pagesprinted=%d",
+ job_id.c_str(),
+ status_string.c_str(),
+ details.platform_status_flags,
+ details.status_message.c_str(),
+ details.total_pages,
+ details.pages_printed);
replacements.SetQueryStr(query);
return cloud_print_server_url.ReplaceComponents(replacements);
}

Powered by Google App Engine
This is Rietveld 408576698