summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormerkulova <merkulova@chromium.org>2015-02-04 01:12:30 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-04 09:13:27 +0000
commitbcfe80cc71cad64f8f9b1777f518641f9e96588c (patch)
tree9e4645fd438c672dba3a81751a53dde07dcc3e8f
parentaa16ad225b47b9734e878bb4887651332fa12a9c (diff)
downloadchromium_src-bcfe80cc71cad64f8f9b1777f518641f9e96588c.zip
chromium_src-bcfe80cc71cad64f8f9b1777f518641f9e96588c.tar.gz
chromium_src-bcfe80cc71cad64f8f9b1777f518641f9e96588c.tar.bz2
New icons used for indication of kids accounts on sign-in screen. Icons for supervised accounts returned.
BUG=450795 Review URL: https://codereview.chromium.org/899663003 Cr-Commit-Position: refs/heads/master@{#314528}
-rw-r--r--chrome/browser/chromeos/login/screens/user_selection_screen.cc2
-rw-r--r--ui/login/account_picker/user_pod_row.js7
2 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/login/screens/user_selection_screen.cc b/chrome/browser/chromeos/login/screens/user_selection_screen.cc
index 095359e..20064c8 100644
--- a/chrome/browser/chromeos/login/screens/user_selection_screen.cc
+++ b/chrome/browser/chromeos/login/screens/user_selection_screen.cc
@@ -37,6 +37,7 @@ const char kKeyEnterpriseDomain[] = "enterpriseDomain";
const char kKeyPublicAccount[] = "publicAccount";
const char kKeySupervisedUser[] = "supervisedUser";
const char kKeyChildUser[] = "childUser";
+const char kKeyDesktopUser[] = "isDesktopUser";
const char kKeySignedIn[] = "signedIn";
const char kKeyCanRemove[] = "canRemove";
const char kKeyIsOwner[] = "isOwner";
@@ -150,6 +151,7 @@ void UserSelectionScreen::FillUserDictionary(
user_dict->SetBoolean(kKeyPublicAccount, is_public_session);
user_dict->SetBoolean(kKeySupervisedUser, is_supervised_user);
user_dict->SetBoolean(kKeyChildUser, is_child_user);
+ user_dict->SetBoolean(kKeyDesktopUser, false);
user_dict->SetInteger(kKeyInitialAuthType, auth_type);
user_dict->SetBoolean(kKeySignedIn, user->is_logged_in());
user_dict->SetBoolean(kKeyIsOwner, is_owner);
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index 96f6e24..0f4a274 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -1033,9 +1033,9 @@ cr.define('login', function() {
},
customizeUserPodPerUserType: function() {
- if (this.user_.isChildUser && !this.user_.isDesktopUser) {
+ if (this.user_.childUser && !this.user_.isDesktopUser) {
this.setUserPodIconType('child');
- } else if (this.user_.isSupervisedUser && !this.user_.isDesktopUser) {
+ } else if (this.user_.supervisedUser && !this.user_.isDesktopUser) {
this.setUserPodIconType('supervised');
} else if (this.multiProfilesPolicyApplied) {
// Mark user pod as not focusable which in addition to the grayed out
@@ -1931,9 +1931,8 @@ cr.define('login', function() {
this.nameElement.textContent = this.user.displayName;
var isLockedUser = this.user.needsSignin;
- var isSupervisedUser = this.user.supervisedUser;
+ var isLegacySupervisedUser = this.user.supervisedUser;
var isChildUser = this.user.childUser;
- var isLegacySupervisedUser = isSupervisedUser && !isChildUser;
this.classList.toggle('locked', isLockedUser);
this.classList.toggle('legacy-supervised', isLegacySupervisedUser);
this.classList.toggle('child', isChildUser);