| Index: chrome/browser/resources/options/managed_user_create_confirm.js
|
| diff --git a/chrome/browser/resources/options/managed_user_create_confirm.js b/chrome/browser/resources/options/managed_user_create_confirm.js
|
| index 84bce024659d0ef66a915c3b7a319449d647b78f..93f8d1bdf9d44795c9d07655b28beb70183ddb0d 100644
|
| --- a/chrome/browser/resources/options/managed_user_create_confirm.js
|
| +++ b/chrome/browser/resources/options/managed_user_create_confirm.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;
|
|
|
| /**
|
| * ManagedUserCreateConfirm class.
|
| @@ -13,16 +14,16 @@ cr.define('options', function() {
|
| * @class
|
| */
|
| function ManagedUserCreateConfirmOverlay() {
|
| - OptionsPage.call(this, 'managedUserCreateConfirm',
|
| - '', // The title will be based on the new profile name.
|
| - 'managed-user-created');
|
| + Page.call(this, 'managedUserCreateConfirm',
|
| + '', // The title will be based on the new profile name.
|
| + 'managed-user-created');
|
| };
|
|
|
| cr.addSingletonGetter(ManagedUserCreateConfirmOverlay);
|
|
|
| ManagedUserCreateConfirmOverlay.prototype = {
|
| - // Inherit from OptionsPage.
|
| - __proto__: OptionsPage.prototype,
|
| + // Inherit from Page.
|
| + __proto__: Page.prototype,
|
|
|
| // Info about the newly created profile.
|
| profileInfo_: null,
|
| @@ -31,16 +32,16 @@ cr.define('options', function() {
|
| * Initialize the page.
|
| */
|
| initializePage: function() {
|
| - OptionsPage.prototype.initializePage.call(this);
|
| + Page.prototype.initializePage.call(this);
|
|
|
| $('managed-user-created-done').onclick = function(event) {
|
| - OptionsPage.closeOverlay();
|
| + PageManager.closeOverlay();
|
| };
|
|
|
| var self = this;
|
|
|
| $('managed-user-created-switch').onclick = function(event) {
|
| - OptionsPage.closeOverlay();
|
| + PageManager.closeOverlay();
|
| chrome.send('switchToProfile', [self.profileInfo_.filePath]);
|
| };
|
| },
|
|
|