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

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

Issue 2808423002: cros: Show dircryto migration banner (Closed)
Patch Set: add a test, fix nits Created 3 years, 8 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/login/account_picker/screen_account_picker.css ('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/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 572404dfdd6dc4dedc3af414daadb228e75a6830..b2da10bd1ab6ce167724434184991057c36a18f5 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -388,12 +388,12 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
* Displays a banner containing |message|. If the banner is already present
* this function updates the message in the banner. This function is used
* by the chrome.screenlockPrivate.showMessage API.
- * @param {string} message Text to be displayed
+ * @param {string} message Text to be displayed or empty to hide the banner.
*/
showBannerMessage: function(message) {
var banner = $('signin-banner');
banner.textContent = message;
- banner.classList.toggle('message-set', true);
+ banner.classList.toggle('message-set', !!message);
},
/**
« no previous file with comments | « ui/login/account_picker/screen_account_picker.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698