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

Side by Side Diff: chrome/browser/profiles/avatar_menu.h

Issue 1028603003: Fast user switcher: Distinguish supervised users from child accounts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK Created 5 years, 9 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
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 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // A string representing the sync state of the profile. 59 // A string representing the sync state of the profile.
60 base::string16 sync_state; 60 base::string16 sync_state;
61 61
62 // Whether or not the current profile is signed in. If true, |sync_state| is 62 // Whether or not the current profile is signed in. If true, |sync_state| is
63 // expected to be the email of the signed in user. 63 // expected to be the email of the signed in user.
64 bool signed_in; 64 bool signed_in;
65 65
66 // Whether or not the current profile requires sign-in before use. 66 // Whether or not the current profile requires sign-in before use.
67 bool signin_required; 67 bool signin_required;
68 68
69 // Whether or not the current profile is a supervised user 69 // Whether or not the current profile is a legacy supervised user profile
70 // (see SupervisedUserService). 70 // (see SupervisedUserService).
71 bool supervised; 71 bool legacy_supervised;
72
73 // Whether or not the profile is associated with a child account
74 // (see SupervisedUserService).
75 bool child_account;
72 76
73 // The index in the menu of this profile, used by views to refer to 77 // The index in the menu of this profile, used by views to refer to
74 // profiles. 78 // profiles.
75 size_t menu_index; 79 size_t menu_index;
76 80
77 // The index in the |profile_cache| for this profile. 81 // The index in the |profile_cache| for this profile.
78 size_t profile_index; 82 size_t profile_index;
79 83
80 // The path of this profile. 84 // The path of this profile.
81 base::FilePath profile_path; 85 base::FilePath profile_path;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // The observer of this model, which is notified of changes. Weak. 190 // The observer of this model, which is notified of changes. Weak.
187 AvatarMenuObserver* observer_; 191 AvatarMenuObserver* observer_;
188 192
189 // Browser in which this avatar menu resides. Weak. 193 // Browser in which this avatar menu resides. Weak.
190 Browser* browser_; 194 Browser* browser_;
191 195
192 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); 196 DISALLOW_COPY_AND_ASSIGN(AvatarMenu);
193 }; 197 };
194 198
195 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ 199 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_list_chromeos.cc ('k') | chrome/browser/profiles/profile_list_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698