| Index: chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
|
| diff --git a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
|
| index 4458ecc17616bb2a1135f50a6f70d08b80928f07..5f1091c8250f941afc0f63a76d023275788dc109 100644
|
| --- a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
|
| +++ b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
|
| @@ -179,6 +179,15 @@ cr.define('options', function() {
|
| },
|
|
|
| /**
|
| + * Called to prepare the overlay when a new card is being added.
|
| + * @private
|
| + */
|
| + prepForNewCard_: function() {
|
| + // Focus the first element.
|
| + this.pageDiv.querySelector('input').focus();
|
| + },
|
| +
|
| + /**
|
| * Loads the credit card data from |creditCard|, sets the input fields based
|
| * on this data and stores the GUID of the credit card.
|
| * @private
|
| @@ -190,6 +199,10 @@ cr.define('options', function() {
|
| },
|
| };
|
|
|
| + AutofillEditCreditCardOverlay.prepForNewCard = function() {
|
| + AutofillEditCreditCardOverlay.getInstance().prepForNewCard_();
|
| + };
|
| +
|
| AutofillEditCreditCardOverlay.loadCreditCard = function(creditCard) {
|
| AutofillEditCreditCardOverlay.getInstance().loadCreditCard_(creditCard);
|
| };
|
|
|