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

Side by Side Diff: chrome/browser/chromeos/login/user_manager.cc

Issue 10590004: [cros] Fake a stub user login when no --login-manager and --login-user are given. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further test fixes. Created 8 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/user_manager.h" 5 #include "chrome/browser/chromeos/login/user_manager.h"
6 6
7 #include "base/synchronization/lock.h" 7 #include "base/synchronization/lock.h"
8 #include "chrome/browser/chromeos/login/user_manager_impl.h" 8 #include "chrome/browser/chromeos/login/user_manager_impl.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 // static 14 // static
15 const char UserManager::kLoggedInUsers[] = "LoggedInUsers"; 15 const char UserManager::kLoggedInUsers[] = "LoggedInUsers";
16 const char UserManager::kStubUser[] = "stub-user@example.com";
16 const char UserManager::kUserWallpapers[] = "UserWallpapers"; 17 const char UserManager::kUserWallpapers[] = "UserWallpapers";
17 const char UserManager::kUserWallpapersProperties[] = 18 const char UserManager::kUserWallpapersProperties[] =
18 "UserWallpapersProperties"; 19 "UserWallpapersProperties";
19 const char UserManager::kUserImages[] = "UserImages"; 20 const char UserManager::kUserImages[] = "UserImages";
20 const char UserManager::kUserDisplayName[] = "UserDisplayName"; 21 const char UserManager::kUserDisplayName[] = "UserDisplayName";
21 const char UserManager::kUserDisplayEmail[] = "UserDisplayEmail"; 22 const char UserManager::kUserDisplayEmail[] = "UserDisplayEmail";
22 const char UserManager::kUserOAuthTokenStatus[] = "OAuthTokenStatus"; 23 const char UserManager::kUserOAuthTokenStatus[] = "OAuthTokenStatus";
23 24
24 // Class that is holds pointer to UserManager instance. 25 // Class that is holds pointer to UserManager instance.
25 // One could set UserManager mock instance through it (see UserManager::Set). 26 // One could set UserManager mock instance through it (see UserManager::Set).
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 local_state->RegisterDictionaryPref(kUserDisplayName, 91 local_state->RegisterDictionaryPref(kUserDisplayName,
91 PrefService::UNSYNCABLE_PREF); 92 PrefService::UNSYNCABLE_PREF);
92 local_state->RegisterDictionaryPref(kUserDisplayEmail, 93 local_state->RegisterDictionaryPref(kUserDisplayEmail,
93 PrefService::UNSYNCABLE_PREF); 94 PrefService::UNSYNCABLE_PREF);
94 } 95 }
95 96
96 UserManager::~UserManager() { 97 UserManager::~UserManager() {
97 } 98 }
98 99
99 } // namespace chromeos 100 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698