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

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

Issue 12328091: set a default country in the autofill dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: also sort Created 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_models.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_dialog_models.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_models.h b/chrome/browser/ui/autofill/autofill_dialog_models.h
index a710e6364a054b1f3e51bb30a8c81ec518889a95..045c6b203c97b99cb789df51d5500e55b0fda792 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_models.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_models.h
@@ -10,7 +10,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_vector.h"
#include "base/string16.h"
+#include "chrome/browser/autofill/autofill_country.h"
Ilya Sherman 2013/02/26 00:31:13 nit: Can you forward-declare this?
#include "ui/base/models/combobox_model.h"
#include "ui/base/models/simple_menu_model.h"
@@ -112,10 +114,11 @@ class CountryComboboxModel : public ui::ComboboxModel {
// ui::Combobox implementation:
virtual int GetItemCount() const OVERRIDE;
virtual string16 GetItemAt(int index) OVERRIDE;
+ virtual int GetDefaultIndex() const OVERRIDE;
private:
// The list of all countries.
- std::vector<std::string> country_codes_;
+ ScopedVector<AutofillCountry> countries_;
DISALLOW_COPY_AND_ASSIGN(CountryComboboxModel);
};
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_models.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698