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

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

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 friend class chromeos::MockUserManager; 172 friend class chromeos::MockUserManager;
173 friend class chromeos::FakeLoginUtils; 173 friend class chromeos::FakeLoginUtils;
174 friend class chromeos::FakeUserManager; 174 friend class chromeos::FakeUserManager;
175 friend class chromeos::UserAddingScreenTest; 175 friend class chromeos::UserAddingScreenTest;
176 176
177 // Do not allow anyone else to create new User instances. 177 // Do not allow anyone else to create new User instances.
178 static User* CreateRegularUser(const std::string& email); 178 static User* CreateRegularUser(const std::string& email);
179 static User* CreateGuestUser(); 179 static User* CreateGuestUser();
180 static User* CreateKioskAppUser(const std::string& kiosk_app_username); 180 static User* CreateKioskAppUser(const std::string& kiosk_app_username);
181 static User* CreateSupervisedUser(const std::string& username); 181 static User* CreateSupervisedUser(const std::string& username);
182 static User* CreateRetailModeUser();
183 static User* CreatePublicAccountUser(const std::string& email); 182 static User* CreatePublicAccountUser(const std::string& email);
184 183
185 explicit User(const std::string& email); 184 explicit User(const std::string& email);
186 ~User() override; 185 ~User() override;
187 186
188 const std::string* GetAccountLocale() const { return account_locale_.get(); } 187 const std::string* GetAccountLocale() const { return account_locale_.get(); }
189 188
190 // Setters are private so only UserManager can call them. 189 // Setters are private so only UserManager can call them.
191 void SetAccountLocale(const std::string& resolved_account_locale); 190 void SetAccountLocale(const std::string& resolved_account_locale);
192 191
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 280
282 DISALLOW_COPY_AND_ASSIGN(User); 281 DISALLOW_COPY_AND_ASSIGN(User);
283 }; 282 };
284 283
285 // List of known users. 284 // List of known users.
286 typedef std::vector<User*> UserList; 285 typedef std::vector<User*> UserList;
287 286
288 } // namespace user_manager 287 } // namespace user_manager
289 288
290 #endif // COMPONENTS_USER_MANAGER_USER_H_ 289 #endif // COMPONENTS_USER_MANAGER_USER_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_constants.h ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698