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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3317 view_->GetUserInput(section, &output); 3317 view_->GetUserInput(section, &output);
3318 return output[type]; 3318 return output[type];
3319 } 3319 }
3320 3320
3321 bool AutofillDialogControllerImpl::CanAcceptCountry( 3321 bool AutofillDialogControllerImpl::CanAcceptCountry(
3322 DialogSection section, 3322 DialogSection section,
3323 const std::string& country_code) { 3323 const std::string& country_code) {
3324 DCHECK_EQ(2U, country_code.size()); 3324 DCHECK_EQ(2U, country_code.size());
3325 3325
3326 if (section == SECTION_CC_BILLING) 3326 if (section == SECTION_CC_BILLING)
3327 return LowerCaseEqualsASCII(country_code, "us"); 3327 return base::LowerCaseEqualsASCII(country_code, "us");
3328 3328
3329 CountryComboboxModel* model = CountryComboboxModelForSection(section); 3329 CountryComboboxModel* model = CountryComboboxModelForSection(section);
3330 const std::vector<AutofillCountry*>& countries = model->countries(); 3330 const std::vector<AutofillCountry*>& countries = model->countries();
3331 for (size_t i = 0; i < countries.size(); ++i) { 3331 for (size_t i = 0; i < countries.size(); ++i) {
3332 if (countries[i] && countries[i]->country_code() == country_code) 3332 if (countries[i] && countries[i]->country_code() == country_code)
3333 return true; 3333 return true;
3334 } 3334 }
3335 3335
3336 return false; 3336 return false;
3337 } 3337 }
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
4158 view_->UpdateButtonStrip(); 4158 view_->UpdateButtonStrip();
4159 } 4159 }
4160 4160
4161 void AutofillDialogControllerImpl::FetchWalletCookie() { 4161 void AutofillDialogControllerImpl::FetchWalletCookie() {
4162 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); 4162 net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
4163 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); 4163 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context));
4164 signin_helper_->StartWalletCookieValueFetch(); 4164 signin_helper_->StartWalletCookieValueFetch();
4165 } 4165 }
4166 4166
4167 } // namespace autofill 4167 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698