| 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 8c7334ac5d299a9939165719a044dca997976128..d705256fa1296281e7caa7047893b86c007574d1 100644
|
| --- a/chrome/browser/resources/options/browser_options.js
|
| +++ b/chrome/browser/resources/options/browser_options.js
|
| @@ -220,6 +220,18 @@ cr.define('options', function() {
|
| };
|
| }
|
|
|
| + if (loadTimeData.getBoolean('profileIsGuest')) {
|
| + if ($('appearance-section')) {
|
| + $('appearance-section').hidden = true;
|
| + }
|
| + if ($('startup-section')) {
|
| + $('startup-section').hidden = true;
|
| + }
|
| + if ($('searchBox')) {
|
| + $('searchBox').hidden = true;
|
| + }
|
| + }
|
| +
|
| $('themes-gallery').onclick = function(event) {
|
| window.open(loadTimeData.getString('themesGalleryURL'));
|
| chrome.send('coreOptionsUserMetricsAction',
|
| @@ -651,8 +663,10 @@ cr.define('options', function() {
|
| $('reset-profile-settings').onclick = function(event) {
|
| PageManager.showPageByName('resetProfileSettings');
|
| };
|
| + // The Reset Profile Settings feature makes no sense for an off-the-record
|
| + // profile (e.g. in Guest mode on Chrome OS), so hide it.
|
| $('reset-profile-settings-section').hidden =
|
| - !loadTimeData.getBoolean('enableResetProfileSettings');
|
| + loadTimeData.getBoolean('profileIsGuest');
|
|
|
| // Extension controlled UI.
|
| this.addExtensionControlledBox_('search-section-content',
|
|
|