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

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

Issue 427053002: Do not reload account picker when device-local account policy changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing includes, Created 6 years, 5 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: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index 3d14d363ccefe5c64b1e5238adc9a21fce7c8b77..401234d2a2437081cf0b732fff50c348c798ae51 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -36,6 +36,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'hideUserPodCustomIcon',
'setAuthType',
'showEasyUnlockBubble',
+ 'setPublicSessionDisplayName',
'setPublicSessionKeyboardLayouts',
],
@@ -310,6 +311,15 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
},
/**
+ * Updates the display name shown on a public session pod.
+ * @param {string} userID The user ID of the public session
+ * @param {string} displayName The new display name
+ */
+ setPublicSessionDisplayName: function(userID, displayName) {
+ $('pod-row').setPublicSessionDisplayName(userID, displayName);
+ },
+
+ /**
* Updates the list of available keyboard layouts for a public session pod.
* @param {string} userID The user ID of the public session
* @param {!Object} list List of available keyboard layouts

Powered by Google App Engine
This is Rietveld 408576698