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

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2664773002: Hide warning sign for Active Directory pods (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698