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

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

Issue 2189563002: Use server ID to identify server cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a8614f8ceb7fba26a3ce64e0c8136d56e7ffdbf..5e6092c436c1d06a6e0f08e1b4af0b0443c2feb4 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -631,7 +631,7 @@ void PersonalDataManager::UpdateServerCardBillingAddress(
CreditCard* existing_credit_card = nullptr;
for (auto* server_card : server_credit_cards_) {
- if (credit_card.guid() == server_card->guid()) {
+ if (credit_card.server_id() == server_card->server_id()) {
existing_credit_card = server_card;
break;
}
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698