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

Unified Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/browser/extensions/api/identity/gaia_web_auth_flow.cc
diff --git a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
index d97fca421a354df4ef0c68eb321a3e3e70f60625..825c87c28f3250946d880044865813820fe3d535 100644
--- a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
+++ b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
@@ -52,8 +52,8 @@ GaiaWebAuthFlow::GaiaWebAuthFlow(Delegate* delegate,
std::vector<std::string> scopes(token_key->scopes.begin(),
token_key->scopes.end());
- std::vector<std::string> client_id_parts;
- base::SplitString(oauth2_client_id, '.', &client_id_parts);
+ std::vector<std::string> client_id_parts = base::SplitString(
+ oauth2_client_id, ".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::reverse(client_id_parts.begin(), client_id_parts.end());
redirect_scheme_ = base::JoinString(client_id_parts, ".");
std::string signin_scoped_device_id;
« no previous file with comments | « chrome/browser/extensions/api/i18n/i18n_api.cc ('k') | chrome/browser/extensions/api/log_private/log_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698