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

Unified Diff: chrome/browser/resources/options/managed_user_create_confirm.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/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]);
};
},

Powered by Google App Engine
This is Rietveld 408576698