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

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

Issue 1785923010: Remove kAutofillWalletSyncExperimentEnabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark wallet_sync as obsolete, remove wallet_sync_enabled. Created 4 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: components/autofill/core/browser/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 3ef8d1d04b8ed0a411362676001f72a0d629f319..67625afe22d50014394492569fec526732910dfd 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -621,8 +621,7 @@ const std::vector<CreditCard*>& PersonalDataManager::GetCreditCards() const {
credit_cards_.clear();
credit_cards_.insert(credit_cards_.end(), local_credit_cards_.begin(),
local_credit_cards_.end());
- if (IsExperimentalWalletIntegrationEnabled() &&
- pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled)) {
+ if (pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled)) {
credit_cards_.insert(credit_cards_.end(), server_credit_cards_.begin(),
server_credit_cards_.end());
}
@@ -974,10 +973,6 @@ const std::string& PersonalDataManager::GetDefaultCountryCodeForNewAddress()
return default_country_code_;
}
-bool PersonalDataManager::IsExperimentalWalletIntegrationEnabled() const {
- return pref_service_->GetBoolean(prefs::kAutofillWalletSyncExperimentEnabled);
-}
-
// static
void PersonalDataManager::DedupeCreditCardSuggestions(
std::list<const CreditCard*>* cards_to_suggest) {
@@ -1409,8 +1404,7 @@ const std::vector<AutofillProfile*>& PersonalDataManager::GetProfiles(
profiles_.clear();
profiles_.insert(profiles_.end(), web_profiles().begin(),
web_profiles().end());
- if (IsExperimentalWalletIntegrationEnabled() &&
- pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled)) {
+ if (pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled)) {
profiles_.insert(
profiles_.end(), server_profiles_.begin(), server_profiles_.end());
}

Powered by Google App Engine
This is Rietveld 408576698