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

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

Issue 2421323002: Created new account type for ARC++ kiosk. (Closed)
Patch Set: Rebase Created 4 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/fake_user_manager.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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 friend class FakeUserManager; 189 friend class FakeUserManager;
190 friend class chromeos::FakeChromeUserManager; 190 friend class chromeos::FakeChromeUserManager;
191 friend class chromeos::MockUserManager; 191 friend class chromeos::MockUserManager;
192 friend class chromeos::UserAddingScreenTest; 192 friend class chromeos::UserAddingScreenTest;
193 FRIEND_TEST_ALL_PREFIXES(UserTest, DeviceLocalAccountAffiliation); 193 FRIEND_TEST_ALL_PREFIXES(UserTest, DeviceLocalAccountAffiliation);
194 194
195 // Do not allow anyone else to create new User instances. 195 // Do not allow anyone else to create new User instances.
196 static User* CreateRegularUser(const AccountId& account_id); 196 static User* CreateRegularUser(const AccountId& account_id);
197 static User* CreateGuestUser(const AccountId& guest_account_id); 197 static User* CreateGuestUser(const AccountId& guest_account_id);
198 static User* CreateKioskAppUser(const AccountId& kiosk_app_account_id); 198 static User* CreateKioskAppUser(const AccountId& kiosk_app_account_id);
199 static User* CreateArcKioskAppUser(const AccountId& arc_kiosk_account_id);
199 static User* CreateSupervisedUser(const AccountId& account_id); 200 static User* CreateSupervisedUser(const AccountId& account_id);
200 static User* CreatePublicAccountUser(const AccountId& account_id); 201 static User* CreatePublicAccountUser(const AccountId& account_id);
201 202
202 const std::string* GetAccountLocale() const { return account_locale_.get(); } 203 const std::string* GetAccountLocale() const { return account_locale_.get(); }
203 204
204 // Setters are private so only UserManager can call them. 205 // Setters are private so only UserManager can call them.
205 void SetAccountLocale(const std::string& resolved_account_locale); 206 void SetAccountLocale(const std::string& resolved_account_locale);
206 207
207 void SetImage(std::unique_ptr<UserImage> user_image, int image_index); 208 void SetImage(std::unique_ptr<UserImage> user_image, int image_index);
208 209
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 304
304 DISALLOW_COPY_AND_ASSIGN(User); 305 DISALLOW_COPY_AND_ASSIGN(User);
305 }; 306 };
306 307
307 // List of known users. 308 // List of known users.
308 using UserList = std::vector<User*>; 309 using UserList = std::vector<User*>;
309 310
310 } // namespace user_manager 311 } // namespace user_manager
311 312
312 #endif // COMPONENTS_USER_MANAGER_USER_H_ 313 #endif // COMPONENTS_USER_MANAGER_USER_H_
OLDNEW
« no previous file with comments | « components/user_manager/fake_user_manager.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698