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

Unified Diff: google_apis/gaia/oauth2_mint_token_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/oauth2_mint_token_fetcher.cc
diff --git a/google_apis/gaia/oauth2_mint_token_fetcher.cc b/google_apis/gaia/oauth2_mint_token_fetcher.cc
index 051f9ab49bb9c01a77aa31bffbd598f64e4d7947..c5dfc05dcbd272ff049d1f811627c07a81d54569 100644
--- a/google_apis/gaia/oauth2_mint_token_fetcher.cc
+++ b/google_apis/gaia/oauth2_mint_token_fetcher.cc
@@ -163,7 +163,7 @@ GURL OAuth2MintTokenFetcher::MakeMintTokenUrl() {
// static
std::string OAuth2MintTokenFetcher::MakeMintTokenHeader(
const std::string& access_token) {
- return StringPrintf(kAuthorizationHeaderFormat, access_token.c_str());
+ return base::StringPrintf(kAuthorizationHeaderFormat, access_token.c_str());
}
// static
@@ -171,7 +171,7 @@ std::string OAuth2MintTokenFetcher::MakeMintTokenBody(
const std::string& client_id,
const std::vector<std::string>& scopes,
const std::string& origin) {
- return StringPrintf(
+ return base::StringPrintf(
kOAuth2IssueTokenBodyFormat,
net::EscapeUrlEncodedData(JoinString(scopes, ','), true).c_str(),
net::EscapeUrlEncodedData(client_id, true).c_str(),

Powered by Google App Engine
This is Rietveld 408576698