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

Side by Side Diff: trunk/src/google_apis/gaia/gaia_auth_fetcher.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "google_apis/gaia/gaia_auth_fetcher.h" 5 #include "google_apis/gaia/gaia_auth_fetcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 #include "net/url_request/url_request_status.h" 27 #include "net/url_request/url_request_status.h"
28 28
29 namespace { 29 namespace {
30 const int kLoadFlagsIgnoreCookies = net::LOAD_DO_NOT_SEND_COOKIES | 30 const int kLoadFlagsIgnoreCookies = net::LOAD_DO_NOT_SEND_COOKIES |
31 net::LOAD_DO_NOT_SAVE_COOKIES; 31 net::LOAD_DO_NOT_SAVE_COOKIES;
32 32
33 static bool CookiePartsContains(const std::vector<std::string>& parts, 33 static bool CookiePartsContains(const std::vector<std::string>& parts,
34 const char* part) { 34 const char* part) {
35 for (std::vector<std::string>::const_iterator it = parts.begin(); 35 for (std::vector<std::string>::const_iterator it = parts.begin();
36 it != parts.end(); ++it) { 36 it != parts.end(); ++it) {
37 if (base::LowerCaseEqualsASCII(*it, part)) 37 if (LowerCaseEqualsASCII(*it, part))
38 return true; 38 return true;
39 } 39 }
40 return false; 40 return false;
41 } 41 }
42 42
43 bool ExtractOAuth2TokenPairResponse(base::DictionaryValue* dict, 43 bool ExtractOAuth2TokenPairResponse(base::DictionaryValue* dict,
44 std::string* refresh_token, 44 std::string* refresh_token,
45 std::string* access_token, 45 std::string* access_token,
46 int* expires_in_secs) { 46 int* expires_in_secs) {
47 DCHECK(refresh_token); 47 DCHECK(refresh_token);
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 NOTREACHED(); 974 NOTREACHED();
975 } 975 }
976 } 976 }
977 977
978 // static 978 // static
979 bool GaiaAuthFetcher::IsSecondFactorSuccess( 979 bool GaiaAuthFetcher::IsSecondFactorSuccess(
980 const std::string& alleged_error) { 980 const std::string& alleged_error) {
981 return alleged_error.find(kSecondFactor) != 981 return alleged_error.find(kSecondFactor) !=
982 std::string::npos; 982 std::string::npos;
983 } 983 }
OLDNEW
« no previous file with comments | « trunk/src/extensions/renderer/runtime_custom_bindings.cc ('k') | trunk/src/gpu/config/gpu_test_expectations_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698