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

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

Issue 924783002: options: fix guest mode showing advanced settings bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index e0d7865a891d343c9c50734be47ab3ddaed687b1..0eb90aadbbcd85aee6506f6dc680dba179459b52 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -834,6 +834,10 @@ cr.define('options', function() {
* @private
*/
showSection_: function(section, container, animate) {
+ if (section == $('advanced-settings') &&
+ !loadTimeData.getBoolean('allowAdvancedSettings')) {
+ return;
+ }
// Delay starting the transition if animating so that hidden change will
// be processed.
if (animate) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698