Chromium Code Reviews| 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..c768f23b65b8f463062696aa727eca776b3228ae 100644 |
| --- a/ui/login/account_picker/user_pod_row.js |
| +++ b/ui/login/account_picker/user_pod_row.js |
| @@ -771,7 +771,8 @@ 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( |
| + if (cr.isChromeOS && this.submitButton && |
| + !cr.ui.login.ResourceLoader.alreadyLoadedAssets( |
|
Greg Levin
2016/09/22 20:31:39
I assume this condition makes sense, and that this
jdufault
2016/09/22 20:52:20
Discussed a bit offline. We should probably just a
|
| 'custom-elements-user-pod')) { |
| cr.ui.login.ResourceLoader.registerAssets({ |
| id: 'custom-elements-user-pod', |
| @@ -895,7 +896,8 @@ cr.define('login', function() { |
| * @type {!HTMLInputElement} |
| */ |
| get submitButton() { |
| - return this.querySelector('.submit-button'); |
| + return this.user_.publicAccount ? null : |
| + this.querySelector('.submit-button'); |
|
Greg Levin
2016/09/22 20:31:39
Public Session pods don't have Submit buttons. Is
|
| }, |
| /** |