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

Unified Diff: chrome/browser/ui/autofill/country_combobox_model.h

Issue 178263004: rAc - Only show countries we're able to fill in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: country codes only Created 6 years, 10 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/country_combobox_model.h
diff --git a/chrome/browser/ui/autofill/country_combobox_model.h b/chrome/browser/ui/autofill/country_combobox_model.h
index 327c268d18f8b10b4bcde2fd37c6335f2ae0aefc..4cb3608b7bb2e301833b4386743310cd9123db2b 100644
--- a/chrome/browser/ui/autofill/country_combobox_model.h
+++ b/chrome/browser/ui/autofill/country_combobox_model.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_UI_AUTOFILL_COUNTRY_COMBOBOX_MODEL_H_
#define CHROME_BROWSER_UI_AUTOFILL_COUNTRY_COMBOBOX_MODEL_H_
+#include <set>
#include <string>
#include <vector>
@@ -21,9 +22,12 @@ class PersonalDataManager;
// A model for countries to be used to enter addresses.
class CountryComboboxModel : public ui::ComboboxModel {
public:
+ // When |country_filter| is non-empty, it provides the set of country values
+ // (both 2-letter codes and display names) that are available to choose from.
// When |show_partially_supported_countries| is false, countries with
// semi-supported address components (e.g. dependent locality) will be hidden.
CountryComboboxModel(const PersonalDataManager& manager,
+ const std::set<base::string16>& country_filter,
bool show_partially_supported_countries);
virtual ~CountryComboboxModel();

Powered by Google App Engine
This is Rietveld 408576698