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

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

Issue 11414294: Add a "managed user settings" page to chrome://settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('options', function() {
6 /** @const */ var OptionsPage = options.OptionsPage;
7
8 //////////////////////////////////////////////////////////////////////////////
9 // ManagedUserSettings class:
10
11 /**
12 * Encapsulated handling of the Managed User Settings page.
13 * @constructor
14 * @class
15 */
16 function ManagedUserSettings() {
17 OptionsPage.call(
18 this,
19 'manageduser',
20 loadTimeData.getString('managedUserSettingsPageTabTitle'),
21 'managed-user-settings-page');
22 }
23
24 cr.addSingletonGetter(ManagedUserSettings);
25
26 ManagedUserSettings.prototype = {
27 // Inherit from OptionsPage.
28 __proto__: OptionsPage.prototype,
29
30 /**
31 * Initialize the page.
32 * @override
33 */
34 initializePage: function() {
35 // Call base class implementation to start preference initialization.
36 OptionsPage.prototype.initializePage.call(this);
37
38 $('get-content-packs-button').onclick = function(event) {
39 window.open(loadTimeData.getString('getContentPacksURL'));
40 };
41
42 $('managed-user-settings-confirm').onclick = function() {
43 OptionsPage.closeOverlay();
44 };
45
46 $('set-passphrase').onclick = function() {
47 // TODO(bauerb): Set passphrase
48 };
49 },
50 };
51
52 // Export
53 return {
54 ManagedUserSettings: ManagedUserSettings
55 };
56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698