diff options
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 22:33:04 +0000 |
---|---|---|
committer | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 22:33:04 +0000 |
commit | 7d3cbc90c089bb3ba5cb81a5abdc0846d5826def (patch) | |
tree | 8ad0db2d4581c8e935ed1b07c6b4147a5350a204 /google_apis/gaia/gaia_auth_fetcher.cc | |
parent | bb192b87059a76b89fbc20ad08347c28656e838d (diff) | |
download | chromium_src-7d3cbc90c089bb3ba5cb81a5abdc0846d5826def.zip chromium_src-7d3cbc90c089bb3ba5cb81a5abdc0846d5826def.tar.gz chromium_src-7d3cbc90c089bb3ba5cb81a5abdc0846d5826def.tar.bz2 |
[Cleanup] Remove StringPrintf from global namespace
use of StringPrintf now requires prefixing with base:: or a per-scope using directive
TBR'd:
abodenha: chrome/service
brettw: content, third_party, webkit
darin: base, chrome/browser, chrome/renderer
dgarret: courgette
enne: cc
fischmann: media
gbillock: sql
joi: google_apis,components
rsleevi: net, crypto
sky: chrome/test
thestig: printing, chrome/common,
tsepez: ipc
wez: remoting
yfriedman: testing/android
NOTRY=true
R=brettw@chromium.org
TBR=joi@chromium.org, rsleevi@chromium.org, enne@chromium.org, thestig@chromium.org, darin@chromium.org, abodenha@chromium.org, sky@chromium.org, dgarret@chromium.org, tsepez@chromium.org, fishman@chromium.org, wez@chromium.org, gbillock@chromium.org, yfriedman@chromium.org
BUG=
Review URL: https://codereview.chromium.org/12767006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/gaia/gaia_auth_fetcher.cc')
-rw-r--r-- | google_apis/gaia/gaia_auth_fetcher.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_fetcher.cc index c40a3be..822fc98 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 |