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

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: Another merge 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 */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 ////////////////////////////////////////////////////////////////////////////// 8 //////////////////////////////////////////////////////////////////////////////
9 // ContentSettings class: 9 // ContentSettings class:
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 64 };
65 } 65 }
66 66
67 var manageHandlersButton = $('manage-handlers-button'); 67 var manageHandlersButton = $('manage-handlers-button');
68 if (manageHandlersButton) { 68 if (manageHandlersButton) {
69 manageHandlersButton.onclick = function(event) { 69 manageHandlersButton.onclick = function(event) {
70 OptionsPage.navigateToPage('handlers'); 70 OptionsPage.navigateToPage('handlers');
71 }; 71 };
72 } 72 }
73 73
74 if (cr.isChromeOS)
75 AccountsOptions.applyGuestModeVisibility(document);
76
74 // Cookies filter page --------------------------------------------------- 77 // Cookies filter page ---------------------------------------------------
75 $('show-cookies-button').onclick = function(event) { 78 $('show-cookies-button').onclick = function(event) {
76 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); 79 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
77 OptionsPage.navigateToPage('cookies'); 80 OptionsPage.navigateToPage('cookies');
78 }; 81 };
79 82
80 // Remove from DOM instead of hiding so :last-of-type applies the style 83 // Remove from DOM instead of hiding so :last-of-type applies the style
81 // correctly. 84 // correctly.
82 var intentsSection = $('intents-section'); 85 var intentsSection = $('intents-section');
83 if (!templateData.enable_web_intents && intentsSection) 86 if (!templateData.enable_web_intents && intentsSection)
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 'list[mode=' + mode + ']'); 220 'list[mode=' + mode + ']');
218 exceptionsList.patternValidityCheckComplete(pattern, valid); 221 exceptionsList.patternValidityCheckComplete(pattern, valid);
219 }; 222 };
220 223
221 // Export 224 // Export
222 return { 225 return {
223 ContentSettings: ContentSettings 226 ContentSettings: ContentSettings
224 }; 227 };
225 228
226 }); 229 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/content_settings.html ('k') | chrome/browser/resources/options2/language_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698