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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 24360013: Remove supervised users from the app list profile selector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index b1f46a70e27cd02ca674f61d48cd9bf192603574..67d4a6261c4255648275d5059a2e4e5079471d58 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -60,6 +60,10 @@ void PopulateUsers(const ProfileInfoCache& profile_info,
app_list::AppListModel::Users* users) {
const size_t count = profile_info.GetNumberOfProfiles();
for (size_t i = 0; i < count; ++i) {
+ // Don't display managed users.
+ if (profile_info.ProfileIsManagedAtIndex(i))
+ continue;
+
app_list::AppListModel::User user;
user.name = profile_info.GetNameOfProfileAtIndex(i);
user.email = profile_info.GetUserNameOfProfileAtIndex(i);

Powered by Google App Engine
This is Rietveld 408576698