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

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

Issue 6269015: Add facility to fix about: and file: links from chrome:// pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more automatic Created 9 years, 11 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 ////////////////////////////////////////////////////////////////////////////// 9 //////////////////////////////////////////////////////////////////////////////
10 // ContentSettings class: 10 // ContentSettings class:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 $('block-third-party-cookies').onclick = function(event) { 43 $('block-third-party-cookies').onclick = function(event) {
44 chrome.send('setAllowThirdPartyCookies', 44 chrome.send('setAllowThirdPartyCookies',
45 [String($('block-third-party-cookies').checked)]); 45 [String($('block-third-party-cookies').checked)]);
46 }; 46 };
47 47
48 $('show-cookies-button').onclick = function(event) { 48 $('show-cookies-button').onclick = function(event) {
49 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); 49 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
50 OptionsPage.showPageByName('cookiesView'); 50 OptionsPage.showPageByName('cookiesView');
51 }; 51 };
52 52
53 $('plugins-tab').onclick = function(event) {
54 chrome.send('openPluginsTab');
55 return false;
56 };
57
58 if (!templateData.enable_click_to_play) 53 if (!templateData.enable_click_to_play)
59 $('click_to_play').style.display = 'none'; 54 $('click_to_play').style.display = 'none';
60 }, 55 },
61 56
62 /** 57 /**
63 * Handles a hash value in the URL (such as bar in 58 * Handles a hash value in the URL (such as bar in
64 * chrome://options/foo#bar). 59 * chrome://options/foo#bar).
65 * @param {string} hash The hash value. 60 * @param {string} hash The hash value.
66 */ 61 */
67 handleHash: function(hash) { 62 handleHash: function(hash) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) { 133 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) {
139 $('clear-cookies-on-exit-label').innerText = label; 134 $('clear-cookies-on-exit-label').innerText = label;
140 }; 135 };
141 136
142 // Export 137 // Export
143 return { 138 return {
144 ContentSettings: ContentSettings 139 ContentSettings: ContentSettings
145 }; 140 };
146 141
147 }); 142 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/history.html ('k') | chrome/browser/resources/options/content_settings_exceptions_area.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698