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

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

Issue 279243002: Cleanup browser_options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | 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 c9cf4be78b568874bdf18e70f9dbd9738c32275c..5bbd7f092ee73116bba45cb5cbd71dd6fc6fed03 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -837,17 +837,18 @@ cr.define('options', function() {
$('sync-section').hidden = false;
this.maybeShowUserSection_();
- var subSection = $('sync-section').firstChild;
- while (subSection) {
- if (subSection.nodeType == Node.ELEMENT_NODE)
- subSection.hidden = syncData.supervisedUser;
- subSection = subSection.nextSibling;
- }
+ if (cr.isChromeOS && syncData.supervisedUser) {
+ var subSection = $('sync-section').firstChild;
+ while (subSection) {
+ if (subSection.nodeType == Node.ELEMENT_NODE)
+ subSection.hidden = true;
+ subSection = subSection.nextSibling;
+ }
- if (syncData.supervisedUser) {
$('account-picture-wrapper').hidden = false;
Marc Treib 2014/05/12 16:26:50 E.g. account-picture-wrapper and sync-general only
$('sync-general').hidden = false;
$('sync-status').hidden = true;
+
return;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698