| Index: chrome/browser/resources/options/chromeos/accounts_options.js
|
| diff --git a/chrome/browser/resources/options/chromeos/accounts_options.js b/chrome/browser/resources/options/chromeos/accounts_options.js
|
| index d187f0b82cafd5d5ef2882d39e20ddd894f7b1ea..792575b739027d68b2edfb86a7a0169f25891482 100644
|
| --- a/chrome/browser/resources/options/chromeos/accounts_options.js
|
| +++ b/chrome/browser/resources/options/chromeos/accounts_options.js
|
| @@ -3,7 +3,8 @@
|
| // found in the LICENSE file.
|
|
|
| cr.define('options', function() {
|
| - var OptionsPage = options.OptionsPage;
|
| + var Page = cr.ui.pageManager.Page;
|
| + var PageManager = cr.ui.pageManager.PageManager;
|
|
|
| /////////////////////////////////////////////////////////////////////////////
|
| // AccountsOptions class:
|
| @@ -13,9 +14,8 @@ cr.define('options', function() {
|
| * @constructor
|
| */
|
| function AccountsOptions(model) {
|
| - OptionsPage.call(this, 'accounts',
|
| - loadTimeData.getString('accountsPageTabTitle'),
|
| - 'accountsPage');
|
| + Page.call(this, 'accounts', loadTimeData.getString('accountsPageTabTitle'),
|
| + 'accountsPage');
|
| // Whether to show the whitelist.
|
| this.showWhitelist_ = false;
|
| }
|
| @@ -23,15 +23,15 @@ cr.define('options', function() {
|
| cr.addSingletonGetter(AccountsOptions);
|
|
|
| AccountsOptions.prototype = {
|
| - // Inherit AccountsOptions from OptionsPage.
|
| - __proto__: OptionsPage.prototype,
|
| + // Inherit AccountsOptions from Page.
|
| + __proto__: Page.prototype,
|
|
|
| /**
|
| * Initializes AccountsOptions page.
|
| */
|
| initializePage: function() {
|
| // Call base class implementation to starts preference initialization.
|
| - OptionsPage.prototype.initializePage.call(this);
|
| + Page.prototype.initializePage.call(this);
|
|
|
| // Set up accounts page.
|
| var userList = $('userList');
|
| @@ -62,7 +62,7 @@ cr.define('options', function() {
|
| this.handleUseWhitelistPrefChange_.bind(this));
|
|
|
| $('accounts-options-overlay-confirm').onclick =
|
| - OptionsPage.closeOverlay.bind(OptionsPage);
|
| + PageManager.closeOverlay.bind(PageManager);
|
| },
|
|
|
| /**
|
| @@ -77,7 +77,7 @@ cr.define('options', function() {
|
| },
|
|
|
| /**
|
| - * Handler for OptionsPage's visible property change event.
|
| + * Handler for Page's visible property change event.
|
| * @private
|
| * @param {Event} e Property change event.
|
| */
|
|
|