| Index: chrome/browser/ui/webui/options/autofill_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
|
| index 9f7db4a3307f82f54fcf9c432b4f8f5e6f37c706..d7c06834b8b10202628a0e20f30a5f80141021fd 100644
|
| --- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
|
| @@ -697,15 +697,7 @@ void AutofillOptionsHandler::ValidatePhoneNumbers(const base::ListValue* args) {
|
| }
|
|
|
| void AutofillOptionsHandler::RemaskServerCards(const base::ListValue* args) {
|
| - const std::vector<CreditCard*>& cards = personal_data_->GetCreditCards();
|
| - for (const auto card : cards) {
|
| - CreditCard card_copy = *card;
|
| - if (card_copy.record_type() == CreditCard::FULL_SERVER_CARD) {
|
| - card_copy.set_record_type(CreditCard::MASKED_SERVER_CARD);
|
| - card_copy.SetNumber(card->LastFourDigits());
|
| - personal_data_->UpdateServerCreditCard(card_copy);
|
| - }
|
| - }
|
| + personal_data_->ResetFullServerCards();
|
| }
|
|
|
| bool AutofillOptionsHandler::IsPersonalDataLoaded() const {
|
|
|