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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_models.cc

Issue 178263004: rAc - Only show countries we're able to fill in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 6 years, 9 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
Index: chrome/browser/ui/autofill/autofill_dialog_models.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_models.cc b/chrome/browser/ui/autofill/autofill_dialog_models.cc
index 1b90980d919aba1d3cdef2b4a78ec38bd5937b10..fa8de9eb5594920024ddf0fdf73116792f5da702 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_models.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_models.cc
@@ -83,7 +83,8 @@ std::string SuggestionsMenuModel::GetItemKeyForCheckedItem() const {
void SuggestionsMenuModel::SetCheckedItem(const std::string& item_key) {
for (size_t i = 0; i < items_.size(); ++i) {
if (items_[i].key == item_key) {
- checked_item_ = i;
+ if (IsEnabledAt(i))
+ checked_item_ = i;
break;
}
}
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ('k') | chrome/browser/ui/autofill/country_combobox_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698