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

Unified Diff: chrome/browser/resources/login/screen_account_picker.js

Issue 289013002: cros: Clean up screenlockPrivate plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove "multiple-signin-banner-text" Created 6 years, 7 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
Index: chrome/browser/resources/login/screen_account_picker.js
diff --git a/chrome/browser/resources/login/screen_account_picker.js b/chrome/browser/resources/login/screen_account_picker.js
index a0e7fbe1258c73bc607388dfcb42ada7e545c522..2a81c7910d58d3726d4b69378e0c98803c8ed3c7 100644
--- a/chrome/browser/resources/login/screen_account_picker.js
+++ b/chrome/browser/resources/login/screen_account_picker.js
@@ -32,8 +32,8 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'forceLockedUserPodFocus',
'removeUser',
'showBannerMessage',
- 'showUserPodButton',
- 'hideUserPodButton',
+ 'showUserPodCustomIcon',
+ 'hideUserPodCustomIcon',
'setAuthType',
'showEasyUnlockBubble',
],
@@ -274,22 +274,23 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
},
/**
- * Shows a button with an icon on the user pod of |username|. This function
+ * Shows a custom icon in the user pod of |username|. This function
* is used by the chrome.screenlockPrivate API.
* @param {string} username Username of pod to add button
* @param {string} iconURL URL of the button icon
*/
- showUserPodButton: function(username, iconURL) {
- $('pod-row').showUserPodButton(username, iconURL);
+ showUserPodCustomIcon: function(username, iconURL) {
+ $('pod-row').showUserPodCustomIcon(username, iconURL);
},
/**
- * Hides button on the user pod of |username| added by showUserPodButton().
- * This function is used by the chrome.screenlockPrivate API.
+ * Hides the custom icon in the user pod of |username| added by
+ * showUserPodCustomIcon(). This function is used by the
+ * chrome.screenlockPrivate API.
* @param {string} username Username of pod to remove button
*/
- hideUserPodButton: function(username) {
- $('pod-row').hideUserPodButton(username);
+ hideUserPodCustomIcon: function(username) {
+ $('pod-row').hideUserPodCustomIcon(username);
},
/**

Powered by Google App Engine
This is Rietveld 408576698