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

Side by Side Diff: components/user_manager/fake_user_manager.h

Issue 2711113003: Track whether a given user session has completed initialization, and use (Closed)
Patch Set: Only expose known_user::RemovePrefsForTesting() for tests Created 3 years, 9 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 | « chrome/browser/profiles/profile_impl.cc ('k') | components/user_manager/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool HasBrowserRestarted() const override; 57 bool HasBrowserRestarted() const override;
58 58
59 // Not implemented. 59 // Not implemented.
60 void UpdateUserAccountData(const AccountId& account_id, 60 void UpdateUserAccountData(const AccountId& account_id,
61 const UserAccountData& account_data) override {} 61 const UserAccountData& account_data) override {}
62 void Shutdown() override {} 62 void Shutdown() override {}
63 const user_manager::UserList& GetLRULoggedInUsers() const override; 63 const user_manager::UserList& GetLRULoggedInUsers() const override;
64 user_manager::UserList GetUnlockUsers() const override; 64 user_manager::UserList GetUnlockUsers() const override;
65 const AccountId& GetOwnerAccountId() const override; 65 const AccountId& GetOwnerAccountId() const override;
66 void OnSessionStarted() override {} 66 void OnSessionStarted() override {}
67 void OnProfileInitialized(User* user) override;
67 void RemoveUser(const AccountId& account_id, 68 void RemoveUser(const AccountId& account_id,
68 user_manager::RemoveUserDelegate* delegate) override {} 69 user_manager::RemoveUserDelegate* delegate) override {}
69 void RemoveUserFromList(const AccountId& account_id) override; 70 void RemoveUserFromList(const AccountId& account_id) override;
70 bool IsKnownUser(const AccountId& account_id) const override; 71 bool IsKnownUser(const AccountId& account_id) const override;
71 const user_manager::User* FindUser( 72 const user_manager::User* FindUser(
72 const AccountId& account_id) const override; 73 const AccountId& account_id) const override;
73 user_manager::User* FindUserAndModify(const AccountId& account_id) override; 74 user_manager::User* FindUserAndModify(const AccountId& account_id) override;
74 const user_manager::User* GetPrimaryUser() const override; 75 const user_manager::User* GetPrimaryUser() const override;
75 void SaveUserOAuthStatus( 76 void SaveUserOAuthStatus(
76 const AccountId& account_id, 77 const AccountId& account_id,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 156
156 // stub. Always empty. 157 // stub. Always empty.
157 gfx::ImageSkia empty_image_; 158 gfx::ImageSkia empty_image_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 160 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
160 }; 161 };
161 162
162 } // namespace user_manager 163 } // namespace user_manager
163 164
164 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 165 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | components/user_manager/fake_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698