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

Unified Diff: components/autofill/core/browser/country_combobox_model.h

Issue 2705773002: [Autofill] Move country combo box model from chrome to component. (Closed)
Patch Set: Rebase Created 3 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: components/autofill/core/browser/country_combobox_model.h
diff --git a/chrome/browser/ui/autofill/country_combobox_model.h b/components/autofill/core/browser/country_combobox_model.h
similarity index 84%
rename from chrome/browser/ui/autofill/country_combobox_model.h
rename to components/autofill/core/browser/country_combobox_model.h
index d7e25a6a0c2b021d83ba3b0a7c9f5a076b70a57c..b3d90c3abf6d45197ec5b6bbe1a5883710b5ab9e 100644
--- a/chrome/browser/ui/autofill/country_combobox_model.h
+++ b/components/autofill/core/browser/country_combobox_model.h
@@ -2,18 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_AUTOFILL_COUNTRY_COMBOBOX_MODEL_H_
-#define CHROME_BROWSER_UI_AUTOFILL_COUNTRY_COMBOBOX_MODEL_H_
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_COUNTRY_COMBOBOX_MODEL_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_COUNTRY_COMBOBOX_MODEL_H_
#include <memory>
-#include <set>
#include <string>
#include <vector>
#include "base/callback.h"
-#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "ui/base/models/combobox_model.h"
namespace autofill {
@@ -33,7 +30,8 @@ class CountryComboboxModel : public ui::ComboboxModel {
// true, an item for that country is added to the model (else it's omitted).
// |manager| determines the default choice.
void SetCountries(const PersonalDataManager& manager,
- const base::Callback<bool(const std::string&)>& filter);
+ const base::Callback<bool(const std::string&)>& filter,
+ const std::string& app_locale);
// ui::ComboboxModel implementation:
int GetItemCount() const override;
@@ -55,4 +53,4 @@ class CountryComboboxModel : public ui::ComboboxModel {
} // namespace autofill
-#endif // CHROME_BROWSER_UI_AUTOFILL_COUNTRY_COMBOBOX_MODEL_H_
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_COUNTRY_COMBOBOX_MODEL_H_
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/country_combobox_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698