From 36d442b924c47292a7e2c1ca44e4f4ec1c65c3d9 Mon Sep 17 00:00:00 2001 From: treib Date: Tue, 17 Nov 2015 00:45:13 -0800 Subject: [PATCH] Fix missing supervised user delete message on CrOS This was broken in http://crrev.com/1248613003, which replaced JS code to show/hide the message with CSS selectors based on the 'legacy-supervised' class. However, that class was only used on desktop, not on CrOS. This CL is a minimal fix, for merging to M48: Set this particular class also on CrOS. Longer-term, it would be nice to clean up the user pod stuff to be less different on CrOS vs desktop... BUG=546183 Review URL: https://codereview.chromium.org/1446193002 Cr-Commit-Position: refs/heads/master@{#360037} --- ui/login/account_picker/user_pod_row.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js index 5c9a1c5a9ac15..35f39fdc1c703 100644 --- a/ui/login/account_picker/user_pod_row.js +++ b/ui/login/account_picker/user_pod_row.js @@ -1028,6 +1028,7 @@ cr.define('login', function() { this.setUserPodIconType('child'); } else if (this.user_.legacySupervisedUser && !this.user_.isDesktopUser) { this.setUserPodIconType('legacySupervised'); + this.classList.add('legacy-supervised'); } else if (this.multiProfilesPolicyApplied) { // Mark user pod as not focusable which in addition to the grayed out // filter makes it look in disabled state.