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

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

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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
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 3264 matching lines...) Expand 10 before | Expand all | Expand 10 after
3275 view_->GetUserInput(section, &output); 3275 view_->GetUserInput(section, &output);
3276 return output[type]; 3276 return output[type];
3277 } 3277 }
3278 3278
3279 bool AutofillDialogControllerImpl::CanAcceptCountry( 3279 bool AutofillDialogControllerImpl::CanAcceptCountry(
3280 DialogSection section, 3280 DialogSection section,
3281 const std::string& country_code) { 3281 const std::string& country_code) {
3282 DCHECK_EQ(2U, country_code.size()); 3282 DCHECK_EQ(2U, country_code.size());
3283 3283
3284 if (section == SECTION_CC_BILLING) 3284 if (section == SECTION_CC_BILLING)
3285 return LowerCaseEqualsASCII(country_code, "us"); 3285 return base::LowerCaseEqualsASCII(country_code, "us");
3286 3286
3287 CountryComboboxModel* model = CountryComboboxModelForSection(section); 3287 CountryComboboxModel* model = CountryComboboxModelForSection(section);
3288 const std::vector<AutofillCountry*>& countries = model->countries(); 3288 const std::vector<AutofillCountry*>& countries = model->countries();
3289 for (size_t i = 0; i < countries.size(); ++i) { 3289 for (size_t i = 0; i < countries.size(); ++i) {
3290 if (countries[i] && countries[i]->country_code() == country_code) 3290 if (countries[i] && countries[i]->country_code() == country_code)
3291 return true; 3291 return true;
3292 } 3292 }
3293 3293
3294 return false; 3294 return false;
3295 } 3295 }
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
4113 view_->UpdateButtonStrip(); 4113 view_->UpdateButtonStrip();
4114 } 4114 }
4115 4115
4116 void AutofillDialogControllerImpl::FetchWalletCookie() { 4116 void AutofillDialogControllerImpl::FetchWalletCookie() {
4117 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); 4117 net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
4118 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); 4118 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context));
4119 signin_helper_->StartWalletCookieValueFetch(); 4119 signin_helper_->StartWalletCookieValueFetch();
4120 } 4120 }
4121 4121
4122 } // namespace autofill 4122 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/webstore/webstore_provider.cc ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698