summaryrefslogtreecommitdiffstats
path: root/ui/login
diff options
context:
space:
mode:
authortbarzic <tbarzic@chromium.org>2014-09-16 19:19:43 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-17 02:19:51 +0000
commit15ce5fef76770ea53948b6660cc67f7f21a60163 (patch)
tree1070e0748ccf959ce49d929411959817e9c06193 /ui/login
parentcaf874447fabaaee90921d611a052648ea150c70 (diff)
downloadchromium_src-15ce5fef76770ea53948b6660cc67f7f21a60163.zip
chromium_src-15ce5fef76770ea53948b6660cc67f7f21a60163.tar.gz
chromium_src-15ce5fef76770ea53948b6660cc67f7f21a60163.tar.bz2
Remove unused chrome.screenlockPrivate methods
TEST=Tested that easy unlock still works BUG=None Review URL: https://codereview.chromium.org/562393002 Cr-Commit-Position: refs/heads/master@{#295216}
Diffstat (limited to 'ui/login')
-rw-r--r--ui/login/account_picker/user_pod_row.js21
1 files changed, 2 insertions, 19 deletions
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index f3b9ed5..1024dfa 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);