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

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

Issue 1455263002: Reland of This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « components/user_manager/empty_user_info.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 base::string16 display_name() const { return display_name_; } 90 base::string16 display_name() const { return display_name_; }
91 91
92 // If the user has to use SAML to log in. 92 // If the user has to use SAML to log in.
93 bool using_saml() const { return using_saml_; } 93 bool using_saml() const { return using_saml_; }
94 94
95 // UserInfo 95 // UserInfo
96 std::string GetEmail() const override; 96 std::string GetEmail() const override;
97 base::string16 GetDisplayName() const override; 97 base::string16 GetDisplayName() const override;
98 base::string16 GetGivenName() const override; 98 base::string16 GetGivenName() const override;
99 const gfx::ImageSkia& GetImage() const override; 99 const gfx::ImageSkia& GetImage() const override;
100 AccountId GetAccountId() const override; 100 const AccountId& GetAccountId() const override;
101 101
102 // Allows managing child status of the user. Used for RegularUser. 102 // Allows managing child status of the user. Used for RegularUser.
103 virtual void SetIsChild(bool is_child); 103 virtual void SetIsChild(bool is_child);
104 104
105 // Returns true if user has gaia account. True for users of types 105 // Returns true if user has gaia account. True for users of types
106 // USER_TYPE_REGULAR and USER_TYPE_CHILD. 106 // USER_TYPE_REGULAR and USER_TYPE_CHILD.
107 virtual bool HasGaiaAccount() const; 107 virtual bool HasGaiaAccount() const;
108 108
109 // Returns true if user is supervised. 109 // Returns true if user is supervised.
110 virtual bool IsSupervised() const; 110 virtual bool IsSupervised() const;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 DISALLOW_COPY_AND_ASSIGN(User); 299 DISALLOW_COPY_AND_ASSIGN(User);
300 }; 300 };
301 301
302 // List of known users. 302 // List of known users.
303 using UserList = std::vector<User*>; 303 using UserList = std::vector<User*>;
304 304
305 } // namespace user_manager 305 } // namespace user_manager
306 306
307 #endif // COMPONENTS_USER_MANAGER_USER_H_ 307 #endif // COMPONENTS_USER_MANAGER_USER_H_
OLDNEW
« no previous file with comments | « components/user_manager/empty_user_info.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698