| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview User pod row implementation. | 6 * @fileoverview User pod row implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('login', function() { | 9 cr.define('login', function() { |
| 10 /** | 10 /** |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 this.submitButton.tabIndex = UserPodTabOrder.POD_INPUT; | 773 this.submitButton.tabIndex = UserPodTabOrder.POD_INPUT; |
| 774 } | 774 } |
| 775 | 775 |
| 776 this.imageElement.addEventListener('load', | 776 this.imageElement.addEventListener('load', |
| 777 this.parentNode.handlePodImageLoad.bind(this.parentNode, this)); | 777 this.parentNode.handlePodImageLoad.bind(this.parentNode, this)); |
| 778 | 778 |
| 779 var initialAuthType = this.user.initialAuthType || | 779 var initialAuthType = this.user.initialAuthType || |
| 780 AUTH_TYPE.OFFLINE_PASSWORD; | 780 AUTH_TYPE.OFFLINE_PASSWORD; |
| 781 this.setAuthType(initialAuthType, null); | 781 this.setAuthType(initialAuthType, null); |
| 782 | 782 |
| 783 if (this.user.isActiveDirectory) |
| 784 this.setAttribute('is-active-directory', ''); |
| 785 |
| 783 this.userClickAuthAllowed_ = false; | 786 this.userClickAuthAllowed_ = false; |
| 784 | 787 |
| 785 // Lazy load the assets needed for the polymer submit button. | 788 // Lazy load the assets needed for the polymer submit button. |
| 786 var isLockScreen = (Oobe.getInstance().displayType == DISPLAY_TYPE.LOCK); | 789 var isLockScreen = (Oobe.getInstance().displayType == DISPLAY_TYPE.LOCK); |
| 787 if (cr.isChromeOS && isLockScreen && | 790 if (cr.isChromeOS && isLockScreen && |
| 788 !cr.ui.login.ResourceLoader.alreadyLoadedAssets( | 791 !cr.ui.login.ResourceLoader.alreadyLoadedAssets( |
| 789 'custom-elements-user-pod')) { | 792 'custom-elements-user-pod')) { |
| 790 cr.ui.login.ResourceLoader.registerAssets({ | 793 cr.ui.login.ResourceLoader.registerAssets({ |
| 791 id: 'custom-elements-user-pod', | 794 id: 'custom-elements-user-pod', |
| 792 html: [{ url: 'custom_elements_user_pod.html' }] | 795 html: [{ url: 'custom_elements_user_pod.html' }] |
| (...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3726 if (pod && pod.multiProfilesPolicyApplied) { | 3729 if (pod && pod.multiProfilesPolicyApplied) { |
| 3727 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3730 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3728 } | 3731 } |
| 3729 } | 3732 } |
| 3730 }; | 3733 }; |
| 3731 | 3734 |
| 3732 return { | 3735 return { |
| 3733 PodRow: PodRow | 3736 PodRow: PodRow |
| 3734 }; | 3737 }; |
| 3735 }); | 3738 }); |
| OLD | NEW |