| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Specifies page visibility in guest mode in cr and cros. | 6 * Specifies page visibility in guest mode in cr and cros. |
| 7 * @typedef {{ | 7 * @typedef {{ |
| 8 * advancedSettings: (boolean|undefined), | 8 * advancedSettings: (boolean|undefined), |
| 9 * appearance: (boolean|undefined|AppearancePageVisibility), | 9 * appearance: (boolean|undefined|AppearancePageVisibility), |
| 10 * dateTime: (boolean|undefined|DateTimePageVisibility), | 10 * dateTime: (boolean|undefined|DateTimePageVisibility), |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 var PrivacyPageVisibility; | 53 var PrivacyPageVisibility; |
| 54 | 54 |
| 55 cr.define('settings', function() { | 55 cr.define('settings', function() { |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * Dictionary defining page visibility. | 58 * Dictionary defining page visibility. |
| 59 * This is only set when in guest mode. All pages are visible when not set | 59 * This is only set when in guest mode. All pages are visible when not set |
| 60 * because polymer only notifies after a property is set. | 60 * because polymer only notifies after a property is set. |
| 61 * @type {!GuestModePageVisibility} | 61 * @type {!GuestModePageVisibility} |
| 62 */ | 62 */ |
| 63 var pageVisibility = {}; | 63 var pageVisibility; |
| 64 | 64 |
| 65 if (loadTimeData.getBoolean('isGuest')) { | 65 if (loadTimeData.getBoolean('isGuest')) { |
| 66 // "if not chromeos" and "if chromeos" in two completely separate blocks | 66 // "if not chromeos" and "if chromeos" in two completely separate blocks |
| 67 // to work around closure compiler. | 67 // to work around closure compiler. |
| 68 // <if expr="not chromeos"> | 68 // <if expr="not chromeos"> |
| 69 pageVisibility = { | 69 pageVisibility = { |
| 70 passwordsAndForms: false, | 70 passwordsAndForms: false, |
| 71 people: false, | 71 people: false, |
| 72 onStartup: false, | 72 onStartup: false, |
| 73 reset: false, | 73 reset: false, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 96 }, | 96 }, |
| 97 downloads: { | 97 downloads: { |
| 98 googleDrive: false, | 98 googleDrive: false, |
| 99 }, | 99 }, |
| 100 }; | 100 }; |
| 101 // </if> | 101 // </if> |
| 102 } | 102 } |
| 103 | 103 |
| 104 return {pageVisibility: pageVisibility}; | 104 return {pageVisibility: pageVisibility}; |
| 105 }); | 105 }); |
| OLD | NEW |