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

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

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/fake_user_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/user.h" 10 #include "chrome/browser/chromeos/login/user.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Set the user as logged in. 32 // Set the user as logged in.
33 virtual void UserLoggedIn(const std::string& email, 33 virtual void UserLoggedIn(const std::string& email,
34 const std::string& username_hash, 34 const std::string& username_hash,
35 bool browser_restart) OVERRIDE; 35 bool browser_restart) OVERRIDE;
36 36
37 virtual const User* GetActiveUser() const OVERRIDE; 37 virtual const User* GetActiveUser() const OVERRIDE;
38 virtual User* GetActiveUser() OVERRIDE; 38 virtual User* GetActiveUser() OVERRIDE;
39 virtual void SaveUserDisplayName(const std::string& username, 39 virtual void SaveUserDisplayName(const std::string& username,
40 const string16& display_name) OVERRIDE; 40 const string16& display_name) OVERRIDE;
41 virtual void UpdateUserAccountData(const std::string&, const string16&,
42 const std::string&) OVERRIDE;
41 43
42 // Not implemented. 44 // Not implemented.
43 virtual void Shutdown() OVERRIDE {} 45 virtual void Shutdown() OVERRIDE {}
44 virtual UserImageManager* GetUserImageManager() OVERRIDE; 46 virtual UserImageManager* GetUserImageManager() OVERRIDE;
45 virtual const UserList& GetLRULoggedInUsers() OVERRIDE; 47 virtual const UserList& GetLRULoggedInUsers() OVERRIDE;
46 virtual UserList GetUnlockUsers() const OVERRIDE; 48 virtual UserList GetUnlockUsers() const OVERRIDE;
47 virtual const std::string& GetOwnerEmail() OVERRIDE; 49 virtual const std::string& GetOwnerEmail() OVERRIDE;
48 virtual void SwitchActiveUser(const std::string& email) OVERRIDE {} 50 virtual void SwitchActiveUser(const std::string& email) OVERRIDE {}
49 virtual void SessionStarted() OVERRIDE {} 51 virtual void SessionStarted() OVERRIDE {}
50 virtual void RestoreActiveSessions() OVERRIDE {} 52 virtual void RestoreActiveSessions() OVERRIDE {}
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 UserList user_list_; 130 UserList user_list_;
129 UserList logged_in_users_; 131 UserList logged_in_users_;
130 std::string owner_email_; 132 std::string owner_email_;
131 133
132 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 134 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
133 }; 135 };
134 136
135 } // namespace chromeos 137 } // namespace chromeos
136 138
137 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ 139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/fake_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698