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

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: git add 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) { 53 handleFileOrAboutLinkClicks($('plugins-tab'));
54 chrome.send('openPluginsTab');
55 return false;
56 };
57 54
58 if (!templateData.enable_click_to_play) 55 if (!templateData.enable_click_to_play)
59 $('click_to_play').style.display = 'none'; 56 $('click_to_play').style.display = 'none';
60 }, 57 },
61 58
62 /** 59 /**
63 * Handles a hash value in the URL (such as bar in 60 * Handles a hash value in the URL (such as bar in
64 * chrome://options/foo#bar). 61 * chrome://options/foo#bar).
65 * @param {string} hash The hash value. 62 * @param {string} hash The hash value.
66 */ 63 */
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) { 135 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) {
139 $('clear-cookies-on-exit-label').innerText = label; 136 $('clear-cookies-on-exit-label').innerText = label;
140 }; 137 };
141 138
142 // Export 139 // Export
143 return { 140 return {
144 ContentSettings: ContentSettings 141 ContentSettings: ContentSettings
145 }; 142 };
146 143
147 }); 144 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698