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

Side by Side Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 #endif 81 #endif
82 82
83 void PopulateUsers(const ProfileInfoCache& profile_info, 83 void PopulateUsers(const ProfileInfoCache& profile_info,
84 const base::FilePath& active_profile_path, 84 const base::FilePath& active_profile_path,
85 app_list::AppListViewDelegate::Users* users) { 85 app_list::AppListViewDelegate::Users* users) {
86 users->clear(); 86 users->clear();
87 const size_t count = profile_info.GetNumberOfProfiles(); 87 const size_t count = profile_info.GetNumberOfProfiles();
88 for (size_t i = 0; i < count; ++i) { 88 for (size_t i = 0; i < count; ++i) {
89 // Don't display managed users. 89 // Don't display managed users.
90 if (profile_info.ProfileIsManagedAtIndex(i)) 90 if (profile_info.ProfileIsSupervisedAtIndex(i))
91 continue; 91 continue;
92 92
93 app_list::AppListViewDelegate::User user; 93 app_list::AppListViewDelegate::User user;
94 user.name = profile_info.GetNameOfProfileAtIndex(i); 94 user.name = profile_info.GetNameOfProfileAtIndex(i);
95 user.email = profile_info.GetUserNameOfProfileAtIndex(i); 95 user.email = profile_info.GetUserNameOfProfileAtIndex(i);
96 user.profile_path = profile_info.GetPathOfProfileAtIndex(i); 96 user.profile_path = profile_info.GetPathOfProfileAtIndex(i);
97 user.active = active_profile_path == user.profile_path; 97 user.active = active_profile_path == user.profile_path;
98 users->push_back(user); 98 users->push_back(user);
99 } 99 }
100 } 100 }
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 void AppListViewDelegate::AddObserver( 448 void AppListViewDelegate::AddObserver(
449 app_list::AppListViewDelegateObserver* observer) { 449 app_list::AppListViewDelegateObserver* observer) {
450 observers_.AddObserver(observer); 450 observers_.AddObserver(observer);
451 } 451 }
452 452
453 void AppListViewDelegate::RemoveObserver( 453 void AppListViewDelegate::RemoveObserver(
454 app_list::AppListViewDelegateObserver* observer) { 454 app_list::AppListViewDelegateObserver* observer) {
455 observers_.RemoveObserver(observer); 455 observers_.RemoveObserver(observer);
456 } 456 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_views.cc ('k') | chrome/browser/ui/app_list/profile_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698