| 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-user-list' shows a list of users whitelisted on this Chrome OS | 7 * 'settings-user-list' shows a list of users whitelisted on this Chrome OS |
| 8 * device. | 8 * device. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 */ | 111 */ |
| 112 getProfilePictureUrl_: function(user) { | 112 getProfilePictureUrl_: function(user) { |
| 113 return 'chrome://userimage/' + user.email + '?id=' + Date.now(); | 113 return 'chrome://userimage/' + user.email + '?id=' + Date.now(); |
| 114 }, | 114 }, |
| 115 | 115 |
| 116 /** | 116 /** |
| 117 * @param {chrome.usersPrivate.User} user | 117 * @param {chrome.usersPrivate.User} user |
| 118 * @private | 118 * @private |
| 119 */ | 119 */ |
| 120 shouldShowEmail_: function(user) { | 120 shouldShowEmail_: function(user) { |
| 121 return !user.isSupervised && user.name != user.email; | 121 return !user.isSupervised && user.name != user.displayEmail; |
| 122 }, | 122 }, |
| 123 }); | 123 }); |
| OLD | NEW |