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

Unified Diff: components/autofill/core/browser/payments/full_card_request.cc

Issue 2116583002: Credit card editor for PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address first round of comments from dfalcantara@. 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
Index: components/autofill/core/browser/payments/full_card_request.cc
diff --git a/components/autofill/core/browser/payments/full_card_request.cc b/components/autofill/core/browser/payments/full_card_request.cc
index 4fe831712fb7b1d79fae916ab65215a21975600a..d16715ee713217956ce61887f90e0c246b679531 100644
--- a/components/autofill/core/browser/payments/full_card_request.cc
+++ b/components/autofill/core/browser/payments/full_card_request.cc
@@ -76,6 +76,7 @@ void FullCardRequest::OnUnmaskResponse(const UnmaskResponse& response) {
request_->card.SetRawInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR, response.exp_year);
if (request_->card.record_type() == CreditCard::LOCAL_CARD &&
+ !request_->card.guid().empty() &&
(!response.exp_month.empty() || !response.exp_year.empty())) {
personal_data_manager_->UpdateCreditCard(request_->card);
}

Powered by Google App Engine
This is Rietveld 408576698