| 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 ace4f444c181eee328349c6e30db36927665aa9e..ba13b342bdf8a57330595eb55db1a9e5518ae953 100644
|
| --- a/components/autofill/core/browser/personal_data_manager.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager.cc
|
| @@ -693,6 +693,21 @@ void PersonalDataManager::AddServerCreditCardForTest(
|
| server_credit_cards_.push_back(credit_card.release());
|
| }
|
|
|
| +void PersonalDataManager::UpdateCreditCardForTest(
|
| + const CreditCard& credit_card) {
|
| + if (credit_card.record_type() == CreditCard::LOCAL_CARD)
|
| + database_->UpdateCreditCard(credit_card);
|
| + else
|
| + database_->UpdateServerCardUsageStats(credit_card);
|
| +}
|
| +
|
| +void PersonalDataManager::UpdateProfileForTest(const AutofillProfile& profile) {
|
| + if (profile.record_type() == AutofillProfile::LOCAL_PROFILE)
|
| + database_->UpdateAutofillProfile(profile);
|
| + else if (profile.record_type() == AutofillProfile::SERVER_PROFILE)
|
| + database_->UpdateServerAddressUsageStats(profile);
|
| +}
|
| +
|
| void PersonalDataManager::RemoveByGUID(const std::string& guid) {
|
| if (is_off_the_record_)
|
| return;
|
|
|