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

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

Issue 2900163002: Add newly created billing address to payment request state. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
index 917c31686d5b422511df638cc3d1ada310d8a759..4733f26105a6cd5a2dc7c48ee4203d64a5e249e0 100644
--- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
@@ -89,7 +89,7 @@ std::vector<base::string16> GetExpirationYearItems() {
}
bool IsCardExpired(const base::string16& month,
- base::string16& year,
+ const base::string16& year,
const std::string& app_locale) {
autofill::CreditCard card;
card.SetExpirationMonthFromString(month, app_locale);
@@ -502,6 +502,7 @@ void CreditCardEditorViewController::ButtonPressed(views::Button* sender,
void CreditCardEditorViewController::AddAndSelectNewBillingAddress(
const autofill::AutofillProfile& profile) {
+ state()->AddAutofillShippingProfile(false, profile);
views::Combobox* address_combobox = static_cast<views::Combobox*>(
dialog()->GetViewByID(GetInputFieldViewId(kBillingAddressType)));
autofill::AddressComboboxModel* model =
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698