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

Unified Diff: google_apis/gaia/gaia_auth_fetcher.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/gaia_auth_fetcher.cc
diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_fetcher.cc
index c40a3beea7a61c025315cd75d4f3503f1799baab..822fc98ab9f7d3a5c86a9698e084e3f66a4b714f 100644
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -306,9 +306,9 @@ std::string GaiaAuthFetcher::MakeGetAuthCodeBody() {
GaiaUrls::GetInstance()->oauth1_login_scope(), true);
std::string encoded_client_id = net::EscapeUrlEncodedData(
GaiaUrls::GetInstance()->oauth2_chrome_client_id(), true);
- return StringPrintf(kClientLoginToOAuth2BodyFormat,
- encoded_scope.c_str(),
- encoded_client_id.c_str());
+ return base::StringPrintf(kClientLoginToOAuth2BodyFormat,
+ encoded_scope.c_str(),
+ encoded_client_id.c_str());
}
// static
@@ -321,11 +321,11 @@ std::string GaiaAuthFetcher::MakeGetTokenPairBody(
std::string encoded_client_secret = net::EscapeUrlEncodedData(
GaiaUrls::GetInstance()->oauth2_chrome_client_secret(), true);
std::string encoded_auth_code = net::EscapeUrlEncodedData(auth_code, true);
- return StringPrintf(kOAuth2CodeToTokenPairBodyFormat,
- encoded_scope.c_str(),
- encoded_client_id.c_str(),
- encoded_client_secret.c_str(),
- encoded_auth_code.c_str());
+ return base::StringPrintf(kOAuth2CodeToTokenPairBodyFormat,
+ encoded_scope.c_str(),
+ encoded_client_id.c_str(),
+ encoded_client_secret.c_str(),
+ encoded_auth_code.c_str());
}
// static
@@ -352,7 +352,7 @@ std::string GaiaAuthFetcher::MakeMergeSessionBody(
// static
std::string GaiaAuthFetcher::MakeGetAuthCodeHeader(
const std::string& auth_token) {
- return StringPrintf(kAuthHeaderFormat, auth_token.c_str());
+ return base::StringPrintf(kAuthHeaderFormat, auth_token.c_str());
}
// Helper method that extracts tokens from a successful reply.
@@ -450,9 +450,9 @@ std::string GaiaAuthFetcher::MakeOAuthLoginBody(const std::string& service,
const std::string& source) {
std::string encoded_service = net::EscapeUrlEncodedData(service, true);
std::string encoded_source = net::EscapeUrlEncodedData(source, true);
- return StringPrintf(kOAuthLoginFormat,
- encoded_service.c_str(),
- encoded_source.c_str());
+ return base::StringPrintf(kOAuthLoginFormat,
+ encoded_service.c_str(),
+ encoded_source.c_str());
}
// static

Powered by Google App Engine
This is Rietveld 408576698