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

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

Issue 58683002: rAc: fix validation logic when autofill completion sets country (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nit Created 7 years, 1 month 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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 link_start, link_start + documents[i]->display_name().size())); 1169 link_start, link_start + documents[i]->display_name().size()));
1170 } 1170 }
1171 legal_documents_text_ = text; 1171 legal_documents_text_ = text;
1172 } 1172 }
1173 1173
1174 void AutofillDialogControllerImpl::ResetSectionInput(DialogSection section) { 1174 void AutofillDialogControllerImpl::ResetSectionInput(DialogSection section) {
1175 SetEditingExistingData(section, false); 1175 SetEditingExistingData(section, false);
1176 1176
1177 DetailInputs* inputs = MutableRequestedFieldsForSection(section); 1177 DetailInputs* inputs = MutableRequestedFieldsForSection(section);
1178 for (DetailInputs::iterator it = inputs->begin(); it != inputs->end(); ++it) { 1178 for (DetailInputs::iterator it = inputs->begin(); it != inputs->end(); ++it) {
1179 it->initial_value.clear(); 1179 it->initial_value = common::GetHardcodedValueForType(it->type);
1180 } 1180 }
1181 } 1181 }
1182 1182
1183 void AutofillDialogControllerImpl::ShowEditUiIfBadSuggestion( 1183 void AutofillDialogControllerImpl::ShowEditUiIfBadSuggestion(
1184 DialogSection section) { 1184 DialogSection section) {
1185 // |CreateWrapper()| returns an empty wrapper if |IsEditingExistingData()|, so 1185 // |CreateWrapper()| returns an empty wrapper if |IsEditingExistingData()|, so
1186 // get the wrapper before this potentially happens below. 1186 // get the wrapper before this potentially happens below.
1187 scoped_ptr<DataModelWrapper> wrapper = CreateWrapper(section); 1187 scoped_ptr<DataModelWrapper> wrapper = CreateWrapper(section);
1188 1188
1189 // If the chosen item in |model| yields an empty suggestion text, it is 1189 // If the chosen item in |model| yields an empty suggestion text, it is
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after
3580 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); 3580 net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
3581 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); 3581 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context));
3582 signin_helper_->StartWalletCookieValueFetch(); 3582 signin_helper_->StartWalletCookieValueFetch();
3583 3583
3584 username_fetcher_.reset( 3584 username_fetcher_.reset(
3585 new wallet::WalletSigninHelper(this, request_context)); 3585 new wallet::WalletSigninHelper(this, request_context));
3586 username_fetcher_->StartUserNameFetch(); 3586 username_fetcher_->StartUserNameFetch();
3587 } 3587 }
3588 3588
3589 } // namespace autofill 3589 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc ('k') | chrome/browser/ui/autofill/data_model_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698