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

Unified Diff: components/autofill/core/browser/test_personal_data_manager.cc

Issue 106033007: Disable wallet in countries where it's not supported, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/test_personal_data_manager.cc
diff --git a/components/autofill/core/browser/test_personal_data_manager.cc b/components/autofill/core/browser/test_personal_data_manager.cc
index 59942a02ddfb58ba10a6f8e055e0e1ea23cee0a5..65542fa8754d222a9c1cbfaf2f80b676f66a9ae5 100644
--- a/components/autofill/core/browser/test_personal_data_manager.cc
+++ b/components/autofill/core/browser/test_personal_data_manager.cc
@@ -9,8 +9,7 @@
namespace autofill {
TestPersonalDataManager::TestPersonalDataManager()
- : PersonalDataManager("en-US"),
- default_country_code_("US") {}
+ : PersonalDataManager("en-US") {}
TestPersonalDataManager::~TestPersonalDataManager() {}
@@ -31,6 +30,11 @@ const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles()
return profiles_;
}
+const std::vector<AutofillProfile*>& TestPersonalDataManager::web_profiles()
+ const {
+ return profiles_;
+}
+
const std::vector<CreditCard*>& TestPersonalDataManager::
GetCreditCards() const {
return credit_cards_;
@@ -48,9 +52,9 @@ std::string TestPersonalDataManager::SaveImportedCreditCard(
return imported_credit_card.guid();
}
-const std::string& TestPersonalDataManager::GetDefaultCountryCodeForNewAddress()
+std::string TestPersonalDataManager::CountryCodeForCurrentTimezone()
const {
- return default_country_code_;
+ return timezone_country_code_;
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698