Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/resources/settings/people_page/user_list.js

Issue 2810443002: MD Settings: People: Fix issues with user icons (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 removeUser_: function(e) { 93 removeUser_: function(e) {
94 chrome.usersPrivate.removeWhitelistedUser( 94 chrome.usersPrivate.removeWhitelistedUser(
95 e.model.item.email, /* callback */ function() {}); 95 e.model.item.email, /* callback */ function() {});
96 }, 96 },
97 97
98 /** @private */ 98 /** @private */
99 shouldHideCloseButton_: function(disabled, isUserOwner) { 99 shouldHideCloseButton_: function(disabled, isUserOwner) {
100 return disabled || isUserOwner; 100 return disabled || isUserOwner;
101 }, 101 },
102 102
103 /** @private */ 103 /**
104 getProfilePictureUrl_: function(username) { 104 * @param {chrome.usersPrivate.User} user
105 return 'chrome://userimage/' + username + '?id=' + Date.now(); 105 * @private
106 */
107 getProfilePictureUrl_: function(user) {
108 return 'chrome://userimage/' + user.email + '?id=' + Date.now();
106 } 109 }
107 }); 110 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698