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

Side by Side Diff: chrome/browser/resources/options/managed_user_create_confirm.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 7
8 /** 8 /**
9 * ManagedUserCreateConfirm class. 9 * ManagedUserCreateConfirm class.
10 * Encapsulated handling of the confirmation overlay page when creating a 10 * Encapsulated handling of the confirmation overlay page when creating a
11 * managed user. 11 * managed user.
12 * @constructor 12 * @constructor
13 * @class 13 * @class
14 */ 14 */
15 function ManagedUserCreateConfirmOverlay() { 15 function ManagedUserCreateConfirmOverlay() {
16 OptionsPage.call(this, 'managedUserCreateConfirm', 16 OptionsPage.call(this, 'managedUserCreateConfirm',
17 '', // The title will be based on the new profile name. 17 '', // The title will be based on the new profile name.
18 'managed-user-created'); 18 'managed-user-created');
19 }; 19 };
20 20
21 cr.addSingletonGetter(ManagedUserCreateConfirmOverlay); 21 cr.addSingletonGetter(ManagedUserCreateConfirmOverlay);
22 22
23 ManagedUserCreateConfirmOverlay.prototype = { 23 ManagedUserCreateConfirmOverlay.prototype = {
24 // Inherit from OptionsPage. 24 // Inherit from OptionsPage.
25 __proto__: OptionsPage.prototype, 25 __proto__: OptionsPage.prototype,
26 26
27 // Info about the newly created profile. 27 // Info about the newly created profile.
28 profileInfo_: null, 28 profileInfo_: null,
29 29
30 /** 30 /** @override */
31 * Initialize the page.
32 */
33 initializePage: function() { 31 initializePage: function() {
34 OptionsPage.prototype.initializePage.call(this); 32 OptionsPage.prototype.initializePage.call(this);
35 33
36 $('managed-user-created-done').onclick = function(event) { 34 $('managed-user-created-done').onclick = function(event) {
37 OptionsPage.closeOverlay(); 35 OptionsPage.closeOverlay();
38 }; 36 };
39 37
40 var self = this; 38 var self = this;
41 39
42 $('managed-user-created-switch').onclick = function(event) { 40 $('managed-user-created-switch').onclick = function(event) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 var instance = ManagedUserCreateConfirmOverlay.getInstance(); 94 var instance = ManagedUserCreateConfirmOverlay.getInstance();
97 return instance[name + '_'].apply(instance, arguments); 95 return instance[name + '_'].apply(instance, arguments);
98 }; 96 };
99 }); 97 });
100 98
101 // Export 99 // Export
102 return { 100 return {
103 ManagedUserCreateConfirmOverlay: ManagedUserCreateConfirmOverlay, 101 ManagedUserCreateConfirmOverlay: ManagedUserCreateConfirmOverlay,
104 }; 102 };
105 }); 103 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/manage_profile_overlay.js ('k') | chrome/browser/resources/options/managed_user_import.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698