Chromium Code Reviews| 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 252b03b9db22274ba3edc3a3f2eb6f3ac07e8c3f..eadb1286d6f27ea06034868c1238d4a03e42a27e 100644 |
| --- a/components/autofill/core/browser/personal_data_manager.cc |
| +++ b/components/autofill/core/browser/personal_data_manager.cc |
| @@ -1338,6 +1338,12 @@ std::string PersonalDataManager::MostCommonCountryCodeFromProfiles() const { |
| void PersonalDataManager::EnabledPrefChanged() { |
| default_country_code_.clear(); |
| + if (!pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled) && |
| + !server_credit_cards_.empty()) { |
|
Evan Stade
2015/03/17 01:26:53
the server_credit_cards_.empty() check seems unnec
|
| + // Re-mask all server cards when the user turns off wallet card |
| + // integration. |
| + ResetFullServerCards(); |
| + } |
| NotifyPersonalDataChanged(); |
| } |