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

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

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 7 years, 3 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/fake_user_manager.h ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698