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

Unified Diff: google_apis/gaia/gaia_auth_fetcher.cc

Issue 1124053006: Use StringPairs with SplitStringIntoKeyValuePairs in google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a79a0fc8863c9c0ebe36ecfe5634d2dc54a0030e..83d65222149633c6eab1f0d68cbe6c416027365f 100644
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -409,9 +409,9 @@ void GaiaAuthFetcher::ParseClientLoginResponse(const std::string& data,
sid->clear();
lsid->clear();
token->clear();
- vector<pair<string, string> > tokens;
+ base::StringPairs tokens;
base::SplitStringIntoKeyValuePairs(data, '=', '\n', &tokens);
- for (vector<pair<string, string> >::iterator i = tokens.begin();
+ for (base::StringPairs::iterator i = tokens.begin();
i != tokens.end(); ++i) {
if (i->first == "SID") {
sid->assign(i->second);
@@ -484,9 +484,9 @@ void GaiaAuthFetcher::ParseClientLoginFailure(const std::string& data,
using std::pair;
using std::string;
- vector<pair<string, string> > tokens;
+ base::StringPairs tokens;
base::SplitStringIntoKeyValuePairs(data, '=', '\n', &tokens);
- for (vector<pair<string, string> >::iterator i = tokens.begin();
+ for (base::StringPairs::iterator i = tokens.begin();
i != tokens.end(); ++i) {
if (i->first == kErrorParam) {
error->assign(i->second);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698