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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/managed_user_settings.js
diff --git a/chrome/browser/resources/options/managed_user_settings.js b/chrome/browser/resources/options/managed_user_settings.js
new file mode 100644
index 0000000000000000000000000000000000000000..f84d34be831e72d272e0a4f68593ba2b9a00b9af
--- /dev/null
+++ b/chrome/browser/resources/options/managed_user_settings.js
@@ -0,0 +1,56 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+cr.define('options', function() {
+ /** @const */ var OptionsPage = options.OptionsPage;
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ManagedUserSettings class:
+
+ /**
+ * Encapsulated handling of the Managed User Settings page.
+ * @constructor
+ * @class
+ */
+ function ManagedUserSettings() {
+ OptionsPage.call(
+ this,
+ 'manageduser',
+ loadTimeData.getString('managedUserSettingsPageTabTitle'),
+ 'managed-user-settings-page');
+ }
+
+ cr.addSingletonGetter(ManagedUserSettings);
+
+ ManagedUserSettings.prototype = {
+ // Inherit from OptionsPage.
+ __proto__: OptionsPage.prototype,
+
+ /**
+ * Initialize the page.
+ * @override
+ */
+ initializePage: function() {
+ // Call base class implementation to start preference initialization.
+ OptionsPage.prototype.initializePage.call(this);
+
+ $('get-content-packs-button').onclick = function(event) {
+ window.open(loadTimeData.getString('getContentPacksURL'));
+ };
+
+ $('managed-user-settings-confirm').onclick = function() {
+ OptionsPage.closeOverlay();
+ };
+
+ $('set-passphrase').onclick = function() {
+ // TODO(bauerb): Set passphrase
+ };
+ },
+ };
+
+ // Export
+ return {
+ ManagedUserSettings: ManagedUserSettings
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698