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.
4#include "chromeos/login/user_names.h"
5
6#include "google_apis/gaia/gaia_auth_util.h"
7
8namespace chromeos {
9
10namespace login {
11
12const char* kStubUser = "stub-user@example.com";
13
14const char* kSignInUser = "sign-in-user-id";
15
16// Should match cros constant in platform/libchromeos/chromeos/cryptohome.h
17const char* kGuestUserName = "$guest";
18
19const char* kSupervisedUserDomain = "locally-managed.localhost";
20
21const char* kRetailModeUserName = "demouser@";
22
23std::string CanonicalizeUserID(const std::string& user_id) {
24  if (user_id == chromeos::login::kGuestUserName)
25    return user_id;
26  return gaia::CanonicalizeEmail(user_id);
27}
28
29}  // namespace login
30
31}  // namespace chromeos
32