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

Unified Diff: chrome/browser/resources/options/autofill_edit_address_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_address_overlay.js
diff --git a/chrome/browser/resources/options/autofill_edit_address_overlay.js b/chrome/browser/resources/options/autofill_edit_address_overlay.js
index 52e716ca8ef6260dffa92365576688d98ec70056..9582ed23342b41a4925dde349e73769863a6786b 100644
--- a/chrome/browser/resources/options/autofill_edit_address_overlay.js
+++ b/chrome/browser/resources/options/autofill_edit_address_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;
/** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
/**
@@ -12,15 +13,15 @@ cr.define('options', function() {
* @class
*/
function AutofillEditAddressOverlay() {
- OptionsPage.call(this, 'autofillEditAddress',
- loadTimeData.getString('autofillEditAddressTitle'),
- 'autofill-edit-address-overlay');
+ Page.call(this, 'autofillEditAddress',
+ loadTimeData.getString('autofillEditAddressTitle'),
+ 'autofill-edit-address-overlay');
}
cr.addSingletonGetter(AutofillEditAddressOverlay);
AutofillEditAddressOverlay.prototype = {
- __proto__: OptionsPage.prototype,
+ __proto__: Page.prototype,
/**
* The GUID of the loaded address.
@@ -46,7 +47,7 @@ cr.define('options', function() {
/** @override */
initializePage: function() {
- OptionsPage.prototype.initializePage.call(this);
+ Page.prototype.initializePage.call(this);
this.createMultiValueLists_();
@@ -152,7 +153,7 @@ cr.define('options', function() {
this.guid_ = '';
this.languageCode_ = '';
this.savedInputFields_ = {};
- OptionsPage.closeOverlay();
+ PageManager.closeOverlay();
},
/**

Powered by Google App Engine
This is Rietveld 408576698