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

Unified Diff: chrome/browser/resources/options/chromeos/system_options.js

Issue 7003007: Apply content-security-policy to the HTML options page. This is a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/chromeos/system_options.js
===================================================================
--- chrome/browser/resources/options/chromeos/system_options.js (revision 84868)
+++ chrome/browser/resources/options/chromeos/system_options.js (working copy)
@@ -1,70 +0,0 @@
-// Copyright (c) 2011 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() {
-
- var OptionsPage = options.OptionsPage;
- /////////////////////////////////////////////////////////////////////////////
- // SystemOptions class:
-
- /**
- * Encapsulated handling of ChromeOS system options page.
- * @constructor
- */
-
- function SystemOptions() {
- OptionsPage.call(this, 'system', templateData.systemPageTabTitle,
- 'systemPage');
- }
-
- cr.addSingletonGetter(SystemOptions);
-
- // Inherit SystemOptions from OptionsPage.
- SystemOptions.prototype = {
- __proto__: options.OptionsPage.prototype,
-
- /**
- * Initializes SystemOptions page.
- * Calls base class implementation to starts preference initialization.
- */
- initializePage: function() {
- OptionsPage.prototype.initializePage.call(this);
- var timezone = $('timezone-select');
- if (timezone) {
- // Disable the timezone setting for non-owners, as this is a
- // system wide setting.
- if (!AccountsOptions.currentUserIsOwner())
- timezone.disabled = true;
- }
-
- $('language-button').onclick = function(event) {
- OptionsPage.navigateToPage('language');
- };
- $('modifier-keys-button').onclick = function(event) {
- OptionsPage.navigateToPage('languageCustomizeModifierKeysOverlay');
- };
- $('accesibility-check').onchange = function(event) {
- chrome.send('accessibilityChange',
- [String($('accesibility-check').checked)]);
- };
- }
- };
-
- //
- // Chrome callbacks
- //
-
- /**
- * Set the initial state of the accessibility checkbox.
- */
- SystemOptions.SetAccessibilityCheckboxState = function(checked) {
- $('accesibility-check').checked = checked;
- };
-
- // Export
- return {
- SystemOptions: SystemOptions
- };
-
-});

Powered by Google App Engine
This is Rietveld 408576698