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

Unified Diff: google_apis/gaia/oauth_request_signer.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: google_apis/gaia/oauth_request_signer.cc
diff --git a/google_apis/gaia/oauth_request_signer.cc b/google_apis/gaia/oauth_request_signer.cc
index 8e90ac806d793d45b07878e216ad79be63d9c126..b5d138f391b6270ef14797b6af9b45d516253f4c 100644
--- a/google_apis/gaia/oauth_request_signer.cc
+++ b/google_apis/gaia/oauth_request_signer.cc
@@ -79,12 +79,12 @@ const std::string SignatureMethodName(
std::string BuildBaseString(const GURL& request_base_url,
OAuthRequestSigner::HttpMethod http_method,
const std::string& base_parameters) {
- return StringPrintf("%s&%s&%s",
- HttpMethodName(http_method).c_str(),
- OAuthRequestSigner::Encode(
- request_base_url.spec()).c_str(),
- OAuthRequestSigner::Encode(
- base_parameters).c_str());
+ return base::StringPrintf("%s&%s&%s",
+ HttpMethodName(http_method).c_str(),
+ OAuthRequestSigner::Encode(
+ request_base_url.spec()).c_str(),
+ OAuthRequestSigner::Encode(
+ base_parameters).c_str());
}
std::string BuildBaseStringParameters(
@@ -448,9 +448,10 @@ bool OAuthRequestSigner::SignAuthHeader(
else
signed_text += ", ";
signed_text +=
- StringPrintf("%s=\"%s\"",
- OAuthRequestSigner::Encode(param->first).c_str(),
- OAuthRequestSigner::Encode(param->second).c_str());
+ base::StringPrintf(
+ "%s=\"%s\"",
+ OAuthRequestSigner::Encode(param->first).c_str(),
+ OAuthRequestSigner::Encode(param->second).c_str());
}
*signed_text_return = signed_text;
}

Powered by Google App Engine
This is Rietveld 408576698