| OLD | NEW |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 local_state->RegisterDictionaryPref(kUserDisplayName, | 89 local_state->RegisterDictionaryPref(kUserDisplayName, |
| 89 PrefService::UNSYNCABLE_PREF); | 90 PrefService::UNSYNCABLE_PREF); |
| 90 local_state->RegisterDictionaryPref(kUserDisplayEmail, | 91 local_state->RegisterDictionaryPref(kUserDisplayEmail, |
| 91 PrefService::UNSYNCABLE_PREF); | 92 PrefService::UNSYNCABLE_PREF); |
| 92 } | 93 } |
| 93 | 94 |
| 94 UserManager::~UserManager() { | 95 UserManager::~UserManager() { |
| 95 } | 96 } |
| 96 | 97 |
| 97 } // namespace chromeos | 98 } // namespace chromeos |
| OLD | NEW |