OLD | NEW |
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 void LoadDeviceLocalAccounts( | 129 void LoadDeviceLocalAccounts( |
130 std::set<AccountId>* device_local_accounts_set) override {} | 130 std::set<AccountId>* device_local_accounts_set) override {} |
131 void PerformPreUserListLoadingActions() override {} | 131 void PerformPreUserListLoadingActions() override {} |
132 void PerformPostUserListLoadingActions() override {} | 132 void PerformPostUserListLoadingActions() override {} |
133 void PerformPostUserLoggedInActions(bool browser_restart) override {} | 133 void PerformPostUserLoggedInActions(bool browser_restart) override {} |
134 bool IsDemoApp(const AccountId& account_id) const override; | 134 bool IsDemoApp(const AccountId& account_id) const override; |
135 bool IsDeviceLocalAccountMarkedForRemoval( | 135 bool IsDeviceLocalAccountMarkedForRemoval( |
136 const AccountId& account_id) const override; | 136 const AccountId& account_id) const override; |
137 void DemoAccountLoggedIn() override {} | 137 void DemoAccountLoggedIn() override {} |
138 void KioskAppLoggedIn(user_manager::User* user) override {} | 138 void KioskAppLoggedIn(user_manager::User* user) override {} |
| 139 void ArcKioskAppLoggedIn(user_manager::User* user) override {} |
139 void PublicAccountUserLoggedIn(user_manager::User* user) override {} | 140 void PublicAccountUserLoggedIn(user_manager::User* user) override {} |
140 void SupervisedUserLoggedIn(const AccountId& account_id) override {} | 141 void SupervisedUserLoggedIn(const AccountId& account_id) override {} |
141 void OnUserRemoved(const AccountId& account_id) override {} | 142 void OnUserRemoved(const AccountId& account_id) override {} |
142 | 143 |
143 protected: | 144 protected: |
144 user_manager::User* primary_user_; | 145 user_manager::User* primary_user_; |
145 | 146 |
146 // If set this is the active user. If empty, the first created user is the | 147 // If set this is the active user. If empty, the first created user is the |
147 // active user. | 148 // active user. |
148 AccountId active_account_id_ = EmptyAccountId(); | 149 AccountId active_account_id_ = EmptyAccountId(); |
149 | 150 |
150 private: | 151 private: |
151 // We use this internal function for const-correctness. | 152 // We use this internal function for const-correctness. |
152 user_manager::User* GetActiveUserInternal() const; | 153 user_manager::User* GetActiveUserInternal() const; |
153 | 154 |
154 // stub, always empty. | 155 // stub, always empty. |
155 AccountId owner_account_id_ = EmptyAccountId(); | 156 AccountId owner_account_id_ = EmptyAccountId(); |
156 | 157 |
157 // stub. Always empty. | 158 // stub. Always empty. |
158 gfx::ImageSkia empty_image_; | 159 gfx::ImageSkia empty_image_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 161 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace user_manager | 164 } // namespace user_manager |
164 | 165 |
165 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 166 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
OLD | NEW |