Index: chrome/browser/resources/chromeos/login/display_manager.js |
diff --git a/chrome/browser/resources/chromeos/login/display_manager.js b/chrome/browser/resources/chromeos/login/display_manager.js |
index 02c39c0663cebfc472e6b07b0e6bd5abbb773817..46bfabb3a362d7510ce3c87ccb31fc748d4c00e8 100644 |
--- a/chrome/browser/resources/chromeos/login/display_manager.js |
+++ b/chrome/browser/resources/chromeos/login/display_manager.js |
@@ -472,7 +472,16 @@ cr.define('cr.ui.login', function() { |
}, |
/** |
- * Returns true if the current screen is the lock screen. |
+ * Returns true if the current UI type is the "Sign-in to add user" |
+ * (another user session is already active). |
+ */ |
+ isSignInToAddScreen: function() { |
+ return document.documentElement.getAttribute('screen') == |
+ 'login-add-user'; |
+ }, |
+ |
+ /** |
+ * Returns true if the current UI type is the lock screen. |
*/ |
isLockScreen: function() { |
return document.documentElement.getAttribute('screen') == 'lock'; |