Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CHROMEOS_LOGIN_USER_NAMES_H_ | 5 #ifndef CHROMEOS_LOGIN_USER_NAMES_H_ |
| 6 #define CHROMEOS_LOGIN_USER_NAMES_H_ | 6 #define CHROMEOS_LOGIN_USER_NAMES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "components/user_manager/user_manager_export.h" |
| 11 | 11 |
| 12 class AccountId; | 12 class AccountId; |
| 13 | 13 |
| 14 namespace user_manager { | |
| 14 namespace chromeos { | 15 namespace chromeos { |
|
stevenjb
2016/10/26 16:30:39
Do we really need/want this in the chromeos namesp
Alexander Alekseev
2016/10/26 20:41:25
Done.
| |
| 15 | 16 |
| 16 namespace login { | |
| 17 | |
| 18 // Username for stub login when not running on ChromeOS. | 17 // Username for stub login when not running on ChromeOS. |
| 19 CHROMEOS_EXPORT extern const char kStubUser[]; | 18 USER_MANAGER_EXPORT extern const char kStubUser[]; |
| 20 | 19 |
| 21 // Magic e-mail addresses are bad. They exist here because some code already | 20 // Magic e-mail addresses are bad. They exist here because some code already |
| 22 // depends on them and it is hard to figure out what. Any user types added in | 21 // depends on them and it is hard to figure out what. Any user types added in |
| 23 // the future should be identified by a new |UserType|, not a new magic e-mail | 22 // the future should be identified by a new |UserType|, not a new magic e-mail |
| 24 // address. | 23 // address. |
| 25 // Username for Guest session user. | 24 // Username for Guest session user. |
| 26 CHROMEOS_EXPORT extern const char kGuestUserName[]; | 25 USER_MANAGER_EXPORT extern const char kGuestUserName[]; |
| 27 | 26 |
| 28 // Domain that is used for all supervised users. | 27 // Domain that is used for all supervised users. |
| 29 CHROMEOS_EXPORT extern const char kSupervisedUserDomain[]; | 28 USER_MANAGER_EXPORT extern const char kSupervisedUserDomain[]; |
| 30 | 29 |
| 31 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID | 30 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID |
| 32 // which does trips up gaia::CanonicalizeEmail() because it does not contain an | 31 // which does trips up gaia::CanonicalizeEmail() because it does not contain an |
| 33 // @ symbol. | 32 // @ symbol. |
| 34 CHROMEOS_EXPORT std::string CanonicalizeUserID(const std::string& user_id); | 33 USER_MANAGER_EXPORT std::string CanonicalizeUserID(const std::string& user_id); |
| 35 | 34 |
| 36 CHROMEOS_EXPORT const AccountId& StubAccountId(); | 35 USER_MANAGER_EXPORT const AccountId& StubAccountId(); |
| 37 | 36 |
| 38 // AccountId for the login screen. It identifies ephemeral profile that is used | 37 // AccountId for the login screen. It identifies ephemeral profile that is used |
| 39 // to display WebUI during OOBE and SignIn. | 38 // to display WebUI during OOBE and SignIn. |
| 40 CHROMEOS_EXPORT const AccountId& SignInAccountId(); | 39 USER_MANAGER_EXPORT const AccountId& SignInAccountId(); |
| 41 | 40 |
| 42 CHROMEOS_EXPORT const AccountId& GuestAccountId(); | 41 USER_MANAGER_EXPORT const AccountId& GuestAccountId(); |
| 43 | 42 |
| 44 CHROMEOS_EXPORT const AccountId& DemoAccountId(); | 43 USER_MANAGER_EXPORT const AccountId& DemoAccountId(); |
| 45 | |
| 46 } // namespace login | |
| 47 | 44 |
| 48 } // namespace chromeos | 45 } // namespace chromeos |
| 46 } // namespace user_manager | |
| 49 | 47 |
| 50 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ | 48 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ |
| OLD | NEW |