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

Unified Diff: chrome/browser/resources/options/autofill_edit_creditcard_overlay.js

Issue 410293004: Split OptionsPage into Page and PageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback Created 6 years, 5 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/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();
},
/**

Powered by Google App Engine
This is Rietveld 408576698