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

Side by Side Diff: chrome/browser/chromeos/login/users/chrome_user_manager_impl.h

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 5 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 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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/containers/hash_tables.h"
14 #include "base/macros.h" 13 #include "base/macros.h"
15 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
16 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
17 #include "base/observer_list.h" 16 #include "base/observer_list.h"
18 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
19 #include "base/time/time.h" 18 #include "base/time/time.h"
20 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" 19 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h"
21 #include "chrome/browser/chromeos/login/user_flow.h" 20 #include "chrome/browser/chromeos/login/user_flow.h"
22 #include "chrome/browser/chromeos/login/users/affiliation.h" 21 #include "chrome/browser/chromeos/login/users/affiliation.h"
23 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" 22 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 void RegularUserLoggedInAsEphemeral(const AccountId& account_id) override; 170 void RegularUserLoggedInAsEphemeral(const AccountId& account_id) override;
172 void SupervisedUserLoggedIn(const AccountId& account_id) override; 171 void SupervisedUserLoggedIn(const AccountId& account_id) override;
173 bool HasPendingBootstrap(const AccountId& account_id) const override; 172 bool HasPendingBootstrap(const AccountId& account_id) const override;
174 173
175 private: 174 private:
176 friend class SupervisedUserManagerImpl; 175 friend class SupervisedUserManagerImpl;
177 friend class UserManagerTest; 176 friend class UserManagerTest;
178 friend class WallpaperManager; 177 friend class WallpaperManager;
179 friend class WallpaperManagerTest; 178 friend class WallpaperManagerTest;
180 179
181 using UserImageManagerMap = 180 using UserImageManagerMap = std::map<AccountId, linked_ptr<UserImageManager>>;
182 base::hash_map<AccountId, linked_ptr<UserImageManager> >;
183 181
184 ChromeUserManagerImpl(); 182 ChromeUserManagerImpl();
185 183
186 // Retrieves trusted device policies and removes users from the persistent 184 // Retrieves trusted device policies and removes users from the persistent
187 // list if ephemeral users are enabled. Schedules a callback to itself if 185 // list if ephemeral users are enabled. Schedules a callback to itself if
188 // trusted device policies are not yet available. 186 // trusted device policies are not yet available.
189 void RetrieveTrustedDevicePolicies(); 187 void RetrieveTrustedDevicePolicies();
190 188
191 // If data for a device local account is marked as pending removal and the 189 // If data for a device local account is marked as pending removal and the
192 // user is no longer logged into that account, removes the data. 190 // user is no longer logged into that account, removes the data.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 std::unique_ptr<BootstrapManager> bootstrap_manager_; 281 std::unique_ptr<BootstrapManager> bootstrap_manager_;
284 282
285 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; 283 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_;
286 284
287 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); 285 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl);
288 }; 286 };
289 287
290 } // namespace chromeos 288 } // namespace chromeos
291 289
292 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ 290 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail_cache.h ('k') | chrome/browser/chromeos/login/wizard_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698