Roll src/third_party/WebKit 9301d6f:4619053 (svn 201058:201059)
[chromium-blink-merge.git] / chromeos / login / user_names.h
blob718d7aeb797e549c8c662579cdb4bc94c3515b40
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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_LOGIN_USER_NAMES_H_
6 #define CHROMEOS_LOGIN_USER_NAMES_H_
8 #include <string>
10 #include "chromeos/chromeos_export.h"
12 namespace chromeos {
14 namespace login {
16 // Username for stub login when not running on ChromeOS.
17 CHROMEOS_EXPORT extern const char* kStubUser;
19 // Username for the login screen. It is only used to identify login screen
20 // tries to set default wallpaper. It is not a real user.
21 CHROMEOS_EXPORT extern const char* kSignInUser;
23 // Magic e-mail addresses are bad. They exist here because some code already
24 // depends on them and it is hard to figure out what. Any user types added in
25 // the future should be identified by a new |UserType|, not a new magic e-mail
26 // address.
27 // Username for Guest session user.
28 CHROMEOS_EXPORT extern const char* kGuestUserName;
30 // Domain that is used for all supervised users.
31 CHROMEOS_EXPORT extern const char* kSupervisedUserDomain;
33 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID
34 // which does trips up gaia::CanonicalizeEmail() because it does not contain an
35 // @ symbol.
36 CHROMEOS_EXPORT std::string CanonicalizeUserID(const std::string& user_id);
38 } // namespace login
40 } // namespace chromeos
42 #endif // CHROMEOS_LOGIN_USER_NAMES_H_