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

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: Nit fixes + merge with TOT + gray out labels for disabled elements 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 // Chrome-OS specific part
James Hawkins 2012/03/01 20:00:19 nit: Period at end of sentence.
Denis Kuznetsov (DE-MUC) 2012/03/02 17:32:25 Done.
71 if (cr.isChromeOS && AccountsOptions.loggedInAsGuest()) {
72 AccountsOptions.disableElementsForGuest(
73 $('clear-cookies-on-exit-group'));
74 }
75
70 // Cookies filter page --------------------------------------------------- 76 // Cookies filter page ---------------------------------------------------
71 $('show-cookies-button').onclick = function(event) { 77 $('show-cookies-button').onclick = function(event) {
72 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); 78 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
73 OptionsPage.navigateToPage('cookies'); 79 OptionsPage.navigateToPage('cookies');
74 }; 80 };
75 81
76 // Remove from DOM instead of hiding so :last-of-type applies the style 82 // Remove from DOM instead of hiding so :last-of-type applies the style
77 // correctly. 83 // correctly.
78 var intentsSection = $('intents-section'); 84 var intentsSection = $('intents-section');
79 if (!templateData.enable_web_intents && intentsSection) 85 if (!templateData.enable_web_intents && intentsSection)
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 'list[mode=' + mode + ']'); 214 'list[mode=' + mode + ']');
209 exceptionsList.patternValidityCheckComplete(pattern, valid); 215 exceptionsList.patternValidityCheckComplete(pattern, valid);
210 }; 216 };
211 217
212 // Export 218 // Export
213 return { 219 return {
214 ContentSettings: ContentSettings 220 ContentSettings: ContentSettings
215 }; 221 };
216 222
217 }); 223 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698