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

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

Issue 2369923002: Fix clicks on Public Session login page after OOBE (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index a65254b35c75fd0c87805324cd953cb9bc53a187..b7ac5c3fec682a99489531d9882301fe56e5958c 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -771,7 +771,9 @@ cr.define('login', function() {
this.userClickAuthAllowed_ = false;
// Lazy load the assets needed for the polymer submit button.
- if (cr.isChromeOS && !cr.ui.login.ResourceLoader.alreadyLoadedAssets(
+ var isLockScreen = (Oobe.getInstance().displayType == DISPLAY_TYPE.LOCK);
+ if (cr.isChromeOS && isLockScreen &&
+ !cr.ui.login.ResourceLoader.alreadyLoadedAssets(
'custom-elements-user-pod')) {
cr.ui.login.ResourceLoader.registerAssets({
id: 'custom-elements-user-pod',
@@ -3246,7 +3248,6 @@ cr.define('login', function() {
if (!this.isFocused(podToFocus))
Oobe.clearErrors();
- var hadFocus = !!this.focusedPod_;
this.focusedPod_ = podToFocus;
if (podToFocus) {
// Only show the keyboard if it is fully loaded.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698