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

Unified Diff: chrome/browser/resources/options/content_settings.js

Issue 467363003: Guest mode causes certain settings to be hidden. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change visibility to CSS controlled Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/content_settings.js
diff --git a/chrome/browser/resources/options/content_settings.js b/chrome/browser/resources/options/content_settings.js
index e751f7d5b2ab1645ab95553062ebe1aa4a412e3a..f49b7df7cb51cdf111c8d606e7900c88e1c7c39b 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -184,8 +184,11 @@ cr.define('options', function() {
ContentSettings.setOTRExceptions = function(type, otrExceptions) {
var exceptionsList = this.getExceptionsList(type, 'otr');
- exceptionsList.parentNode.hidden = false;
- exceptionsList.setExceptions(otrExceptions);
+ // Settings for Guest hides many sections, so check for null first.
+ if (exceptionsList) {
+ exceptionsList.parentNode.hidden = false;
+ exceptionsList.setExceptions(otrExceptions);
+ }
};
/**
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698