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

Unified Diff: ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js

Issue 2241563003: MD Settings / User Manager: fix blurry avatar icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js
diff --git a/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js b/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js
index cbb55e648b7e989fdca0ddf17388d0950d16bdc9..5763ff2b8d72e495c0b8f432d1929c10feb0d4ee 100644
--- a/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js
+++ b/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js
@@ -31,5 +31,14 @@ Polymer({
type: Array,
value: function() { return []; }
}
- }
+ },
+
+ /**
+ * @param {string} iconUrl
+ * @return {string} A CSS imageset for multiple scale factors.
+ * @private
+ */
+ getIconImageset_: function(iconUrl) {
+ return cr.icon.getProfileAvatarIcon(iconUrl);
+ },
});
« no previous file with comments | « ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698