| 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 162a0f0b758530cb8dbbc0ce42d635127fdd8061..fc30c6f41e6cb94d650d2a7cdd01fcdbdbfc95bf 100644
|
| --- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
|
| +++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
|
| @@ -38,6 +38,47 @@ 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_ = {
|
| + people: false,
|
| + onStartup: false,
|
| + reset: false,
|
| +<if expr="not chromeos">
|
| + appearance: false,
|
| + defaultBrowser: false,
|
| +
|
| + hideAdvancedSettings: true,
|
| + hideToolbarSearchField: 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() {
|
| sessionStorage.appealClosed_ = this.appealClosed_ = true;
|
| @@ -57,13 +98,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() ?
|
|
|