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

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

Issue 9293008: Move click-to-play out of chrome://flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 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 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 const OptionsPage = options.OptionsPage; 6 const OptionsPage = options.OptionsPage;
7 7
8 ////////////////////////////////////////////////////////////////////////////// 8 //////////////////////////////////////////////////////////////////////////////
9 // ContentSettings class: 9 // ContentSettings class:
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 OptionsPage.navigateToPage('intents'); 57 OptionsPage.navigateToPage('intents');
58 }; 58 };
59 } 59 }
60 60
61 // Cookies filter page --------------------------------------------------- 61 // Cookies filter page ---------------------------------------------------
62 $('show-cookies-button').onclick = function(event) { 62 $('show-cookies-button').onclick = function(event) {
63 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); 63 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
64 OptionsPage.navigateToPage('cookies'); 64 OptionsPage.navigateToPage('cookies');
65 }; 65 };
66 66
67 if (!templateData.enable_click_to_play)
68 $('click_to_play').hidden = true;
69
70 if (!templateData.enable_web_intents && $('intent-section')) 67 if (!templateData.enable_web_intents && $('intent-section'))
71 $('intent-section').hidden = true; 68 $('intent-section').hidden = true;
72 }, 69 },
73 }; 70 };
74 71
75 ContentSettings.updateHandlersEnabledRadios = function(enabled) { 72 ContentSettings.updateHandlersEnabledRadios = function(enabled) {
76 var selector = '#content-settings-page input[type=radio][value=' + 73 var selector = '#content-settings-page input[type=radio][value=' +
77 (enabled ? 'allow' : 'block') + '].handler-radio'; 74 (enabled ? 'allow' : 'block') + '].handler-radio';
78 document.querySelector(selector).checked = true; 75 document.querySelector(selector).checked = true;
79 }; 76 };
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 'list[mode=' + mode + ']'); 141 'list[mode=' + mode + ']');
145 exceptionsList.patternValidityCheckComplete(pattern, valid); 142 exceptionsList.patternValidityCheckComplete(pattern, valid);
146 }; 143 };
147 144
148 // Export 145 // Export
149 return { 146 return {
150 ContentSettings: ContentSettings 147 ContentSettings: ContentSettings
151 }; 148 };
152 149
153 }); 150 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698