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

Unified Diff: chrome/browser/resources/chromeos/login/display_manager.js

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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';

Powered by Google App Engine
This is Rietveld 408576698