| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/fake_user_manager.h" | 5 #include "chrome/browser/chromeos/login/fake_user_manager.h" |
| 6 | 6 |
| 7 namespace { | 7 namespace { |
| 8 | 8 |
| 9 // As defined in /chromeos/dbus/cryptohome_client.cc. | 9 // As defined in /chromeos/dbus/cryptohome_client.cc. |
| 10 static const char kUserIdHashSuffix[] = "-hash"; | 10 static const char kUserIdHashSuffix[] = "-hash"; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const string16& display_name) { | 77 const string16& display_name) { |
| 78 for (UserList::iterator it = user_list_.begin(); | 78 for (UserList::iterator it = user_list_.begin(); |
| 79 it != user_list_.end(); ++it) { | 79 it != user_list_.end(); ++it) { |
| 80 if ((*it)->email() == username) { | 80 if ((*it)->email() == username) { |
| 81 (*it)->set_display_name(display_name); | 81 (*it)->set_display_name(display_name); |
| 82 return; | 82 return; |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 void FakeUserManager::UpdateUserAccountData(const std::string&, const string16&, |
| 88 const std::string&) { |
| 89 // Not implemented |
| 90 } |
| 91 |
| 87 UserImageManager* FakeUserManager::GetUserImageManager() { | 92 UserImageManager* FakeUserManager::GetUserImageManager() { |
| 88 return NULL; | 93 return NULL; |
| 89 } | 94 } |
| 90 | 95 |
| 91 const UserList& FakeUserManager::GetLRULoggedInUsers() { | 96 const UserList& FakeUserManager::GetLRULoggedInUsers() { |
| 92 return user_list_; | 97 return user_list_; |
| 93 } | 98 } |
| 94 | 99 |
| 95 UserList FakeUserManager::GetUnlockUsers() const { | 100 UserList FakeUserManager::GetUnlockUsers() const { |
| 96 return user_list_; | 101 return user_list_; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 bool FakeUserManager::AreLocallyManagedUsersAllowed() const { | 254 bool FakeUserManager::AreLocallyManagedUsersAllowed() const { |
| 250 return true; | 255 return true; |
| 251 } | 256 } |
| 252 | 257 |
| 253 base::FilePath FakeUserManager::GetUserProfileDir( | 258 base::FilePath FakeUserManager::GetUserProfileDir( |
| 254 const std::string&email) const { | 259 const std::string&email) const { |
| 255 return base::FilePath(); | 260 return base::FilePath(); |
| 256 } | 261 } |
| 257 | 262 |
| 258 } // namespace chromeos | 263 } // namespace chromeos |
| OLD | NEW |