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

Unified Diff: chrome/browser/resources/options/supervised_user_create_confirm.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/supervised_user_create_confirm.js
diff --git a/chrome/browser/resources/options/supervised_user_create_confirm.js b/chrome/browser/resources/options/supervised_user_create_confirm.js
index 192265f13fff6532892138adb2884461d90d8ea2..7728093b54c554d7b85afc227f6ab7cc30c055fa 100644
--- a/chrome/browser/resources/options/supervised_user_create_confirm.js
+++ b/chrome/browser/resources/options/supervised_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;
/**
* SupervisedUserCreateConfirm class.
@@ -13,32 +14,32 @@ cr.define('options', function() {
* @class
*/
function SupervisedUserCreateConfirmOverlay() {
- OptionsPage.call(this, 'supervisedUserCreateConfirm',
- '', // The title will be based on the new profile name.
- 'supervised-user-created');
+ Page.call(this, 'supervisedUserCreateConfirm',
+ '', // The title will be based on the new profile name.
+ 'supervised-user-created');
};
cr.addSingletonGetter(SupervisedUserCreateConfirmOverlay);
SupervisedUserCreateConfirmOverlay.prototype = {
- // Inherit from OptionsPage.
- __proto__: OptionsPage.prototype,
+ // Inherit from Page.
+ __proto__: Page.prototype,
// Info about the newly created profile.
profileInfo_: null,
/** @override */
initializePage: function() {
- OptionsPage.prototype.initializePage.call(this);
+ Page.prototype.initializePage.call(this);
$('supervised-user-created-done').onclick = function(event) {
- OptionsPage.closeOverlay();
+ PageManager.closeOverlay();
};
var self = this;
$('supervised-user-created-switch').onclick = function(event) {
- OptionsPage.closeOverlay();
+ PageManager.closeOverlay();
chrome.send('switchToProfile', [self.profileInfo_.filePath]);
};
},
« no previous file with comments | « chrome/browser/resources/options/startup_overlay.js ('k') | chrome/browser/resources/options/supervised_user_import.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698