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

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

Issue 2798343003: Merge "cros: Fix flaky owner detection" (Closed)
Patch Set: Created 3 years, 8 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>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 using UserImageManagerMap = 181 using UserImageManagerMap =
182 base::hash_map<AccountId, linked_ptr<UserImageManager> >; 182 base::hash_map<AccountId, linked_ptr<UserImageManager> >;
183 183
184 ChromeUserManagerImpl(); 184 ChromeUserManagerImpl();
185 185
186 // Retrieves trusted device policies and removes users from the persistent 186 // Retrieves trusted device policies and removes users from the persistent
187 // list if ephemeral users are enabled. Schedules a callback to itself if 187 // list if ephemeral users are enabled. Schedules a callback to itself if
188 // trusted device policies are not yet available. 188 // trusted device policies are not yet available.
189 void RetrieveTrustedDevicePolicies(); 189 void RetrieveTrustedDevicePolicies();
190 190
191 // Updates current user ownership on UI thread.
192 void UpdateOwnership();
193
194 // If data for a device local account is marked as pending removal and the 191 // If data for a device local account is marked as pending removal and the
195 // user is no longer logged into that account, removes the data. 192 // user is no longer logged into that account, removes the data.
196 void CleanUpDeviceLocalAccountNonCryptohomeDataPendingRemoval(); 193 void CleanUpDeviceLocalAccountNonCryptohomeDataPendingRemoval();
197 194
198 // Removes data belonging to device local accounts that are no longer found on 195 // Removes data belonging to device local accounts that are no longer found on
199 // the user list. If the user is currently logged into one of these accounts, 196 // the user list. If the user is currently logged into one of these accounts,
200 // the data for that account is not removed immediately but marked as pending 197 // the data for that account is not removed immediately but marked as pending
201 // removal after logout. 198 // removal after logout.
202 void CleanUpDeviceLocalAccountNonCryptohomeData( 199 void CleanUpDeviceLocalAccountNonCryptohomeData(
203 const std::vector<std::string>& old_device_local_accounts); 200 const std::vector<std::string>& old_device_local_accounts);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 std::unique_ptr<BootstrapManager> bootstrap_manager_; 283 std::unique_ptr<BootstrapManager> bootstrap_manager_;
287 284
288 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; 285 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_;
289 286
290 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); 287 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl);
291 }; 288 };
292 289
293 } // namespace chromeos 290 } // namespace chromeos
294 291
295 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ 292 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698