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 d836a1539b7534168693e009b976059e75c8bde9..274455f51d67be9be0127d57b892b8956f08a082 100644 |
--- a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js |
+++ b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js |
@@ -3,7 +3,8 @@ |
// found in the LICENSE file. |
cr.define('options', function() { |
- /** @const */ var OptionsPage = options.OptionsPage; |
+ /** @const */ var Page = cr.ui.pageManager.Page; |
+ /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
/** |
* AutofillEditCreditCardOverlay class |
@@ -11,21 +12,21 @@ cr.define('options', function() { |
* @class |
*/ |
function AutofillEditCreditCardOverlay() { |
- OptionsPage.call(this, 'autofillEditCreditCard', |
- loadTimeData.getString('autofillEditCreditCardTitle'), |
- 'autofill-edit-credit-card-overlay'); |
+ Page.call(this, 'autofillEditCreditCard', |
+ loadTimeData.getString('autofillEditCreditCardTitle'), |
+ 'autofill-edit-credit-card-overlay'); |
} |
cr.addSingletonGetter(AutofillEditCreditCardOverlay); |
AutofillEditCreditCardOverlay.prototype = { |
- __proto__: OptionsPage.prototype, |
+ __proto__: Page.prototype, |
/** |
* Initializes the page. |
*/ |
initializePage: function() { |
- OptionsPage.prototype.initializePage.call(this); |
+ Page.prototype.initializePage.call(this); |
var self = this; |
$('autofill-edit-credit-card-cancel-button').onclick = function(event) { |
@@ -59,7 +60,7 @@ cr.define('options', function() { |
dismissOverlay_: function() { |
this.clearInputFields_(); |
this.guid_ = ''; |
- OptionsPage.closeOverlay(); |
+ PageManager.closeOverlay(); |
}, |
/** |