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

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: ugh just no 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 76eca727985de386af53aa02ec60b6ecffc8c105..4458ecc17616bb2a1135f50a6f70d08b80928f07 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,19 +12,19 @@ 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,
/** @override */
initializePage: function() {
- OptionsPage.prototype.initializePage.call(this);
+ Page.prototype.initializePage.call(this);
var self = this;
$('autofill-edit-credit-card-cancel-button').onclick = function(event) {
@@ -57,7 +58,7 @@ cr.define('options', function() {
dismissOverlay_: function() {
this.clearInputFields_();
this.guid_ = '';
- OptionsPage.closeOverlay();
+ PageManager.closeOverlay();
},
/**

Powered by Google App Engine
This is Rietveld 408576698