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

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 562393002: Remove unused chrome.screenlockPrivate methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index f3b9ed55613c5a725f0e31ba6e445db0edd2a06d..1024dfa9542bd35a0767e9c82be9cb0d4bb2642d 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -304,19 +304,6 @@ cr.define('login', function() {
},
/**
- * Set the icon's background image as image set with different
- * representations for available screen scale factors.
- * @param {!{scale1x: string, scale2x: string}} icon The icon
- * representations.
- */
- setIconAsImageSet: function(icon) {
- this.iconElement.style.backgroundImage =
- '-webkit-image-set(' +
- 'url(' + icon.scale1x + ') 1x,' +
- 'url(' + icon.scale2x + ') 2x)';
- },
-
- /**
* Sets the icon background image to a chrome://theme URL.
* @param {!string} iconUrl The icon's background image URL.
*/
@@ -2310,14 +2297,10 @@ cr.define('login', function() {
return;
}
- if (icon.resourceUrl) {
- pod.customIconElement.setIconAsResourceUrl(icon.resourceUrl);
- } else if (icon.data) {
- pod.customIconElement.setIconAsImageSet(icon.data);
- } else {
+ if (!icon.resourceUrl)
return;
- }
+ pod.customIconElement.setIconAsResourceUrl(icon.resourceUrl);
pod.customIconElement.setSize(icon.size || {width: 0, height: 0});
pod.customIconElement.setAnimation(icon.animation || null);
pod.customIconElement.setOpacity(icon.opacity || 100);
« no previous file with comments | « chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698