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

Unified Diff: chrome_frame/metrics_service.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_frame/metrics_service.cc
diff --git a/chrome_frame/metrics_service.cc b/chrome_frame/metrics_service.cc
index 73c93b2eacdaf3c9c3c5582c5df2ccdebd924f7c..cc5e38de01043a9def841245bb6f72efd0d48a9c 100644
--- a/chrome_frame/metrics_service.cc
+++ b/chrome_frame/metrics_service.cc
@@ -180,12 +180,13 @@ class ChromeFrameMetricsDataUploader : public BSCBImpl {
LPWSTR* additional_headers) {
std::string new_headers;
new_headers =
- StringPrintf("Content-Length: %s\r\n"
- "Content-Type: %s\r\n"
- "%s\r\n",
- base::Int64ToString(upload_data_size_).c_str(),
- mime_type_.c_str(),
- http_utils::GetDefaultUserAgentHeaderWithCFTag().c_str());
+ base::StringPrintf(
+ "Content-Length: %s\r\n"
+ "Content-Type: %s\r\n"
+ "%s\r\n",
+ base::Int64ToString(upload_data_size_).c_str(),
+ mime_type_.c_str(),
+ http_utils::GetDefaultUserAgentHeaderWithCFTag().c_str());
*additional_headers = reinterpret_cast<wchar_t*>(
CoTaskMemAlloc((new_headers.size() + 1) * sizeof(wchar_t)));

Powered by Google App Engine
This is Rietveld 408576698