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

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

Issue 69863006: Address races in UserImageManagerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix WallpaperManager browser tests now that UserImageLoader contains a DCHECK(success). Created 7 years, 1 month 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
« 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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual const UserList& GetLRULoggedInUsers() OVERRIDE; 58 virtual const UserList& GetLRULoggedInUsers() OVERRIDE;
59 virtual UserList GetUnlockUsers() const OVERRIDE; 59 virtual UserList GetUnlockUsers() const OVERRIDE;
60 virtual const std::string& GetOwnerEmail() OVERRIDE; 60 virtual const std::string& GetOwnerEmail() OVERRIDE;
61 virtual void SessionStarted() OVERRIDE {} 61 virtual void SessionStarted() OVERRIDE {}
62 virtual void RestoreActiveSessions() OVERRIDE {} 62 virtual void RestoreActiveSessions() OVERRIDE {}
63 virtual void RemoveUser(const std::string& email, 63 virtual void RemoveUser(const std::string& email,
64 RemoveUserDelegate* delegate) OVERRIDE {} 64 RemoveUserDelegate* delegate) OVERRIDE {}
65 virtual void RemoveUserFromList(const std::string& email) OVERRIDE {} 65 virtual void RemoveUserFromList(const std::string& email) OVERRIDE {}
66 virtual bool IsKnownUser(const std::string& email) const OVERRIDE; 66 virtual bool IsKnownUser(const std::string& email) const OVERRIDE;
67 virtual const User* FindUser(const std::string& email) const OVERRIDE; 67 virtual const User* FindUser(const std::string& email) const OVERRIDE;
68 virtual User* FindUserAndModify(const std::string& email) OVERRIDE;
68 virtual const User* GetLoggedInUser() const OVERRIDE; 69 virtual const User* GetLoggedInUser() const OVERRIDE;
69 virtual User* GetLoggedInUser() OVERRIDE; 70 virtual User* GetLoggedInUser() OVERRIDE;
70 virtual const User* GetPrimaryUser() const OVERRIDE; 71 virtual const User* GetPrimaryUser() const OVERRIDE;
71 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; 72 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE;
72 virtual void SaveUserOAuthStatus( 73 virtual void SaveUserOAuthStatus(
73 const std::string& username, 74 const std::string& username,
74 User::OAuthTokenStatus oauth_token_status) OVERRIDE {} 75 User::OAuthTokenStatus oauth_token_status) OVERRIDE {}
75 virtual string16 GetUserDisplayName( 76 virtual string16 GetUserDisplayName(
76 const std::string& username) const OVERRIDE; 77 const std::string& username) const OVERRIDE;
77 virtual void SaveUserDisplayEmail(const std::string& username, 78 virtual void SaveUserDisplayEmail(const std::string& username,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // If set this is the active user. If empty, the first created user is the 138 // If set this is the active user. If empty, the first created user is the
138 // active user. 139 // active user.
139 std::string active_user_id_; 140 std::string active_user_id_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 142 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
142 }; 143 };
143 144
144 } // namespace chromeos 145 } // namespace chromeos
145 146
146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ 147 #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