Index: chrome/browser/resources/options/autofill_options.js |
diff --git a/chrome/browser/resources/options/autofill_options.js b/chrome/browser/resources/options/autofill_options.js |
index 5e64a716994ff733d2809edb00afabd02a01740c..2507c2441f170598306fc0fb86ba5618c6942573 100644 |
--- a/chrome/browser/resources/options/autofill_options.js |
+++ b/chrome/browser/resources/options/autofill_options.js |
@@ -104,6 +104,7 @@ cr.define('options', function() { |
var title = loadTimeData.getString('addAddressTitle'); |
AutofillEditAddressOverlay.setTitle(title); |
PageManager.showPageByName('autofillEditAddress'); |
+ AutofillEditAddressOverlay.prepForNewAddress(); |
}, |
/** |
@@ -115,6 +116,7 @@ cr.define('options', function() { |
var title = loadTimeData.getString('addCreditCardTitle'); |
AutofillEditCreditCardOverlay.setTitle(title); |
PageManager.showPageByName('autofillEditCreditCard'); |
+ AutofillEditCreditCardOverlay.prepForNewCard(); |
}, |
/** |
@@ -181,8 +183,8 @@ cr.define('options', function() { |
/** |
* Shows the 'Edit credit card' overlay, using the data in |credit_card| to |
- * fill the input fields. |address| is a list with one item, an associative |
- * array that contains the credit card data. |
+ * fill the input fields. |creditCard| is a list with one item, an |
+ * associative array that contains the credit card data. |
* @private |
*/ |
showEditCreditCardOverlay_: function(creditCard) { |