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

Unified Diff: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc

Issue 2847503002: [WebPayments] Show labels on incomplete profiles (Closed)
Patch Set: test fix Created 3 years, 8 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: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
index 1a868b56c4822af0b3ac0138695b2aa2295c5c3b..19d1039e56b570569606fe7eda6a4c8d3f415f1c 100644
--- a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
@@ -26,6 +26,7 @@
#include "components/autofill/core/browser/validation.h"
#include "components/autofill/core/common/autofill_constants.h"
#include "components/payments/content/payment_request_state.h"
+#include "components/payments/core/payments_profile_comparator.h"
#include "components/strings/grit/components_strings.h"
#include "third_party/libaddressinput/messages.h"
#include "ui/base/l10n/l10n_util.h"
@@ -129,6 +130,7 @@ bool ShippingAddressEditorViewController::ValidateModelAndSave() {
DCHECK(success);
profile_to_edit_->set_origin(autofill::kSettingsOrigin);
state()->GetPersonalDataManager()->UpdateProfile(*profile_to_edit_);
+ state()->profile_comparator()->Invalidate(*profile_to_edit_);
std::move(on_edited_).Run();
on_added_.Reset();
}

Powered by Google App Engine
This is Rietveld 408576698