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

Unified Diff: chromeos/login/user_names.cc

Issue 378513005: [Athena] Extract Chrome OS authentication stack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix includes in one more test Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/login/user_names.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/user_names.cc
diff --git a/chromeos/login/user_names.cc b/chromeos/login/user_names.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1b4d6ed125a2dfa62639d99d245b0a760a9d0f55
--- /dev/null
+++ b/chromeos/login/user_names.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#include "chromeos/login/user_names.h"
+
+#include "google_apis/gaia/gaia_auth_util.h"
+
+namespace chromeos {
+
+namespace login {
+
+const char* kStubUser = "stub-user@example.com";
+
+const char* kSignInUser = "sign-in-user-id";
+
+// Should match cros constant in platform/libchromeos/chromeos/cryptohome.h
+const char* kGuestUserName = "$guest";
+
+const char* kLocallyManagedUserDomain = "locally-managed.localhost";
+
+const char* kRetailModeUserName = "demouser@";
+
+std::string CanonicalizeUserID(const std::string& user_id) {
+ if (user_id == chromeos::login::kGuestUserName)
+ return user_id;
+ return gaia::CanonicalizeEmail(user_id);
+}
+
+} // namespace login
+
+} // namespace chromeos
« no previous file with comments | « chromeos/login/user_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698