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

Side by Side Diff: chrome/browser/chromeos/login/users/user_manager.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/chromeos/login/users/user_manager.h" 5 #include "chrome/browser/chromeos/login/users/user_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "chrome/browser/browser_process_platform_part_chromeos.h" 9 #include "chrome/browser/browser_process_platform_part_chromeos.h"
10 #include "chrome/browser/chromeos/login/users/user_manager_impl.h" 10 #include "chrome/browser/chromeos/login/users/user_manager_impl.h"
11 #include "chrome/browser/chromeos/profiles/profile_helper.h" 11 #include "chrome/browser/chromeos/profiles/profile_helper.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // static
17 const char UserManager::kStubUser[] = "stub-user@example.com";
18
19 // static
20 const char UserManager::kSignInUser[] = "sign-in-user-id";
21
22 // static
23 // Should match cros constant in platform/libchromeos/chromeos/cryptohome.h
24 const char UserManager::kGuestUserName[] = "$guest";
25
26 // static
27 const char UserManager::kLocallyManagedUserDomain[] =
28 "locally-managed.localhost";
29
30
31 // static
32 const char UserManager::kRetailModeUserName[] = "demouser@";
33 static UserManager* g_user_manager = NULL; 16 static UserManager* g_user_manager = NULL;
34 17
35 UserManager::Observer::~Observer() { 18 UserManager::Observer::~Observer() {
36 } 19 }
37 20
38 void UserManager::Observer::LocalStateChanged(UserManager* user_manager) { 21 void UserManager::Observer::LocalStateChanged(UserManager* user_manager) {
39 } 22 }
40 23
41 void UserManager::UserSessionStateObserver::ActiveUserChanged( 24 void UserManager::UserSessionStateObserver::ActiveUserChanged(
42 const User* active_user) { 25 const User* active_user) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // ProfileHelper has to be initialized after UserManager instance is created. 103 // ProfileHelper has to be initialized after UserManager instance is created.
121 ProfileHelper::Get()->Initialize(); 104 ProfileHelper::Get()->Initialize();
122 } 105 }
123 106
124 ScopedTestUserManager::~ScopedTestUserManager() { 107 ScopedTestUserManager::~ScopedTestUserManager() {
125 UserManager::Get()->Shutdown(); 108 UserManager::Get()->Shutdown();
126 UserManager::Destroy(); 109 UserManager::Destroy();
127 } 110 }
128 111
129 } // namespace chromeos 112 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/user_manager.h ('k') | chrome/browser/chromeos/login/users/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698