| 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..0237add673ae466852b506df92b43a1f4e00a555 100644
|
| --- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
|
| +++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
|
| @@ -60,12 +60,67 @@ Polymer({
|
| type: Boolean,
|
| value: false,
|
| },
|
| +
|
| + /**
|
| + * Dictionary defining page visibility.
|
| + * @private {!GuestModePageVisibility}
|
| + */
|
| + pageVisibility_: {
|
| + type: Object,
|
| + },
|
| },
|
|
|
| listeners: {
|
| '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_ = {
|
| + people: false,
|
| + onStartup: false,
|
| + reset: false,
|
| +<if expr="not chromeos">
|
| + appearance: false,
|
| + defaultBrowser: false,
|
| + advancedSettings: false,
|
| +</if>
|
| +<if expr="chromeos">
|
| + appearance: true,
|
| + advancedSettings: true,
|
| + dateTime: {
|
| + timeZoneSelector: false,
|
| + },
|
| + privacy: {
|
| + searchPrediction: false,
|
| + networkPrediction: false,
|
| + },
|
| + passwordsAndForms: false,
|
| + downloads: {
|
| + googleDrive: false,
|
| + },
|
| +</if>
|
| + };
|
| +
|
| +<if expr="chromeos">
|
| + // Cannot be in the object literal or closure_compiler would complain
|
| + // about duplicate keys.
|
| + this.pageVisibility_.appearance = {
|
| + setWallpaper: false,
|
| + setTheme: false,
|
| + homeButton: false,
|
| + bookmarksBar: false,
|
| + pageZoom: false,
|
| + };
|
| +</if>
|
| + }
|
| + },
|
| +
|
| /** @private */
|
| onCloseAppealTap_: function() {
|
| window.sessionStorage.appealClosed_ = this.appealClosed_ = true;
|
| @@ -85,13 +140,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() ?
|
|
|