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

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

Issue 9464053: Hide/Disable several (meaningless) options in Settings uber-page for Guest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No change picture button anymore Created 8 years, 9 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 60 };
61 } 61 }
62 62
63 var manageHandlersButton = $('manage-handlers-button'); 63 var manageHandlersButton = $('manage-handlers-button');
64 if (manageHandlersButton) { 64 if (manageHandlersButton) {
65 manageHandlersButton.onclick = function(event) { 65 manageHandlersButton.onclick = function(event) {
66 OptionsPage.navigateToPage('handlers'); 66 OptionsPage.navigateToPage('handlers');
67 }; 67 };
68 } 68 }
69 69
70 var manageIntentsButton = $('manage-intents-button');
James Hawkins 2012/02/28 20:03:35 Not sure why you're adding this. The intents page
Denis Kuznetsov (DE-MUC) 2012/02/29 08:41:43 It is an artifact of manual merge. Done.
71 if (manageIntentsButton) {
72 manageIntentsButton.onclick = function(event) {
73 OptionsPage.navigateToPage('intents');
74 };
75 }
76
77 // Chrome-OS specific part
78 if (cr.isChromeOS && AccountsOptions.loggedInAsGuest()) {
79 AccountsOptions.disableElementsForGuest(
80 $('clear-cookies-on-exit-group'));
81 }
82
70 // Cookies filter page --------------------------------------------------- 83 // Cookies filter page ---------------------------------------------------
71 $('show-cookies-button').onclick = function(event) { 84 $('show-cookies-button').onclick = function(event) {
72 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); 85 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
73 OptionsPage.navigateToPage('cookies'); 86 OptionsPage.navigateToPage('cookies');
74 }; 87 };
75 88
76 // Remove from DOM instead of hiding so :last-of-type applies the style 89 // Remove from DOM instead of hiding so :last-of-type applies the style
77 // correctly. 90 // correctly.
78 var intentsSection = $('intents-section'); 91 var intentsSection = $('intents-section');
79 if (!templateData.enable_web_intents && intentsSection) 92 if (!templateData.enable_web_intents && intentsSection)
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 'list[mode=' + mode + ']'); 221 'list[mode=' + mode + ']');
209 exceptionsList.patternValidityCheckComplete(pattern, valid); 222 exceptionsList.patternValidityCheckComplete(pattern, valid);
210 }; 223 };
211 224
212 // Export 225 // Export
213 return { 226 return {
214 ContentSettings: ContentSettings 227 ContentSettings: ContentSettings
215 }; 228 };
216 229
217 }); 230 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698