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

Side by Side Diff: components/user_manager/user.h

Issue 575653002: Revert of ash: Add checks for supervised users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_win.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_USER_MANAGER_USER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_H_
6 #define COMPONENTS_USER_MANAGER_USER_H_ 6 #define COMPONENTS_USER_MANAGER_USER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // The displayed user name. 84 // The displayed user name.
85 base::string16 display_name() const { return display_name_; } 85 base::string16 display_name() const { return display_name_; }
86 86
87 // UserInfo 87 // UserInfo
88 virtual std::string GetEmail() const OVERRIDE; 88 virtual std::string GetEmail() const OVERRIDE;
89 virtual base::string16 GetDisplayName() const OVERRIDE; 89 virtual base::string16 GetDisplayName() const OVERRIDE;
90 virtual base::string16 GetGivenName() const OVERRIDE; 90 virtual base::string16 GetGivenName() const OVERRIDE;
91 virtual const gfx::ImageSkia& GetImage() const OVERRIDE; 91 virtual const gfx::ImageSkia& GetImage() const OVERRIDE;
92 virtual std::string GetUserID() const OVERRIDE; 92 virtual std::string GetUserID() const OVERRIDE;
93 93
94 // Is user supervised.
95 virtual bool IsSupervised() const;
96 virtual void SetIsSupervised(bool is_supervised);
97
98 // Returns the account name part of the email. Use the display form of the 94 // Returns the account name part of the email. Use the display form of the
99 // email if available and use_display_name == true. Otherwise use canonical. 95 // email if available and use_display_name == true. Otherwise use canonical.
100 std::string GetAccountName(bool use_display_email) const; 96 std::string GetAccountName(bool use_display_email) const;
101 97
102 // Whether the user has a default image. 98 // Whether the user has a default image.
103 bool HasDefaultImage() const; 99 bool HasDefaultImage() const;
104 100
105 // True if user image can be synced. 101 // True if user image can be synced.
106 virtual bool CanSyncImage() const; 102 virtual bool CanSyncImage() const;
107 103
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 268
273 DISALLOW_COPY_AND_ASSIGN(User); 269 DISALLOW_COPY_AND_ASSIGN(User);
274 }; 270 };
275 271
276 // List of known users. 272 // List of known users.
277 typedef std::vector<User*> UserList; 273 typedef std::vector<User*> UserList;
278 274
279 } // namespace user_manager 275 } // namespace user_manager
280 276
281 #endif // COMPONENTS_USER_MANAGER_USER_H_ 277 #endif // COMPONENTS_USER_MANAGER_USER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_win.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698