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

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

Issue 384023002: Rename "managed (mode|user)" to "supervised user" (part 6) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: break long lines Created 6 years, 5 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 "apps/custom_launcher_page_contents.h" 9 #include "apps/custom_launcher_page_contents.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 callback); 86 callback);
87 } 87 }
88 #endif 88 #endif
89 89
90 void PopulateUsers(const ProfileInfoCache& profile_info, 90 void PopulateUsers(const ProfileInfoCache& profile_info,
91 const base::FilePath& active_profile_path, 91 const base::FilePath& active_profile_path,
92 app_list::AppListViewDelegate::Users* users) { 92 app_list::AppListViewDelegate::Users* users) {
93 users->clear(); 93 users->clear();
94 const size_t count = profile_info.GetNumberOfProfiles(); 94 const size_t count = profile_info.GetNumberOfProfiles();
95 for (size_t i = 0; i < count; ++i) { 95 for (size_t i = 0; i < count; ++i) {
96 // Don't display managed users. 96 // Don't display supervised users.
97 if (profile_info.ProfileIsSupervisedAtIndex(i)) 97 if (profile_info.ProfileIsSupervisedAtIndex(i))
98 continue; 98 continue;
99 99
100 app_list::AppListViewDelegate::User user; 100 app_list::AppListViewDelegate::User user;
101 user.name = profile_info.GetNameOfProfileAtIndex(i); 101 user.name = profile_info.GetNameOfProfileAtIndex(i);
102 user.email = profile_info.GetUserNameOfProfileAtIndex(i); 102 user.email = profile_info.GetUserNameOfProfileAtIndex(i);
103 user.profile_path = profile_info.GetPathOfProfileAtIndex(i); 103 user.profile_path = profile_info.GetPathOfProfileAtIndex(i);
104 user.active = active_profile_path == user.profile_path; 104 user.active = active_profile_path == user.profile_path;
105 users->push_back(user); 105 users->push_back(user);
106 } 106 }
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 533
534 void AppListViewDelegate::AddObserver( 534 void AppListViewDelegate::AddObserver(
535 app_list::AppListViewDelegateObserver* observer) { 535 app_list::AppListViewDelegateObserver* observer) {
536 observers_.AddObserver(observer); 536 observers_.AddObserver(observer);
537 } 537 }
538 538
539 void AppListViewDelegate::RemoveObserver( 539 void AppListViewDelegate::RemoveObserver(
540 app_list::AppListViewDelegateObserver* observer) { 540 app_list::AppListViewDelegateObserver* observer) {
541 observers_.RemoveObserver(observer); 541 observers_.RemoveObserver(observer);
542 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698