Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chromeos / login / user_names.cc
blob52ed05362e23881db9dc346df670f19346ac9562
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"
6 #include "google_apis/gaia/gaia_auth_util.h"
8 namespace chromeos {
10 namespace login {
12 const char* kStubUser = "stub-user@example.com";
14 const char* kSignInUser = "sign-in-user-id";
16 // Should match cros constant in platform/libchromeos/chromeos/cryptohome.h
17 const char* kGuestUserName = "$guest";
19 const char* kSupervisedUserDomain = "locally-managed.localhost";
21 std::string CanonicalizeUserID(const std::string& user_id) {
22 if (user_id == chromeos::login::kGuestUserName)
23 return user_id;
24 return gaia::CanonicalizeEmail(user_id);
27 } // namespace login
29 } // namespace chromeos