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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2106103006: MD Settings: cr/cros - Guest mode page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments + took out cr_element parts Created 4 years, 5 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
Index: chrome/browser/resources/settings/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index 09ad8f6de7c0162c0b2834fdb4ae1fb8e53a2e7c..2f95a1af0ce857fe9de02a64abbee5d731877d2a 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -66,6 +66,46 @@ Polymer({
'sideNav.iron-activate': 'onIronActivate_',
},
+ /** @override */
+ ready: function() {
+ this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
+ this.$$('settings-main').searchContents(e.detail);
+ }.bind(this));
+
+ if (loadTimeData.getBoolean('isGuest')) {
+ this.pageVisibility_ = {
dpapad 2016/07/21 18:33:33 Where is this private member var declared? I don't
Moe 2016/07/22 16:59:56 Done.
+ people: false,
+ onStartup: false,
+ reset: false,
+<if expr="not chromeos">
+ appearance: false,
+ defaultBrowser: false,
+
+ hideAdvancedSettings: true,
+</if>
+<if expr="chromeos">
+ appearance: {
+ setWallpaper: false,
+ setTheme: false,
+ homeButton: false,
+ bookmarksBar: false,
+ pageZoom: false,
+ },
+ dateTime: {
+ timeZoneSelector: false,
+ },
+ privacy: {
+ networkPrediction: false,
+ },
+ passwordsAndForms: false,
+ downloads: {
+ googleDrive: false,
+ },
+</if>
+ };
+ }
+ },
+
/** @private */
onCloseAppealTap_: function() {
window.sessionStorage.appealClosed_ = this.appealClosed_ = true;
@@ -85,13 +125,6 @@ Polymer({
this.$$('app-drawer').toggle();
},
- /** @override */
- ready: function() {
- this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
- this.$$('settings-main').searchContents(e.detail);
- }.bind(this));
- },
-
/** @private */
directionDelegateChanged_: function() {
this.$$('app-drawer').align = this.directionDelegate.isRtl() ?

Powered by Google App Engine
This is Rietveld 408576698