| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-users-page' is the settings page for managing user accounts on | 7 * 'settings-users-page' is the settings page for managing user accounts on |
| 8 * the device. | 8 * the device. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 return !isOwner || isWhitelistManaged; | 80 return !isOwner || isWhitelistManaged; |
| 81 }, | 81 }, |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * @param {boolean} isOwner | 84 * @param {boolean} isOwner |
| 85 * @param {boolean} isWhitelistManaged | 85 * @param {boolean} isWhitelistManaged |
| 86 * @param {boolean} allowGuest | 86 * @param {boolean} allowGuest |
| 87 * @private | 87 * @private |
| 88 * @return {boolean} | 88 * @return {boolean} |
| 89 */ | 89 */ |
| 90 isEditingUsersDisabled_: function( | 90 isEditingUsersDisabled_: function(isOwner, isWhitelistManaged, allowGuest) { |
| 91 isOwner, isWhitelistManaged, allowGuest) { | |
| 92 return !isOwner || isWhitelistManaged || allowGuest; | 91 return !isOwner || isWhitelistManaged || allowGuest; |
| 93 } | 92 } |
| 94 }); | 93 }); |
| OLD | NEW |