| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_PROFILES_PROFILE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // primary user. | 196 // primary user. |
| 197 static void SetAlwaysReturnPrimaryUserForTesting(bool value); | 197 static void SetAlwaysReturnPrimaryUserForTesting(bool value); |
| 198 | 198 |
| 199 // Associates |profile| with |user|, for GetProfileByUser() testing. | 199 // Associates |profile| with |user|, for GetProfileByUser() testing. |
| 200 void SetUserToProfileMappingForTesting(const user_manager::User* user, | 200 void SetUserToProfileMappingForTesting(const user_manager::User* user, |
| 201 Profile* profile); | 201 Profile* profile); |
| 202 | 202 |
| 203 // Removes |account_id| user from |user_to_profile_for_testing_| for testing. | 203 // Removes |account_id| user from |user_to_profile_for_testing_| for testing. |
| 204 void RemoveUserFromListForTesting(const AccountId& account_id); | 204 void RemoveUserFromListForTesting(const AccountId& account_id); |
| 205 | 205 |
| 206 // Clears all test account for testing. |
| 207 void ClearUserToProfileMappingForTesting(); |
| 208 |
| 206 // Identifies path to active user profile on Chrome OS. | 209 // Identifies path to active user profile on Chrome OS. |
| 207 std::string active_user_id_hash_; | 210 std::string active_user_id_hash_; |
| 208 | 211 |
| 209 // List of callbacks called after signin profile clearance. | 212 // List of callbacks called after signin profile clearance. |
| 210 std::vector<base::Closure> on_clear_callbacks_; | 213 std::vector<base::Closure> on_clear_callbacks_; |
| 211 | 214 |
| 212 // Called when a single stage of profile clearing is finished. | 215 // Called when a single stage of profile clearing is finished. |
| 213 base::Closure on_clear_profile_stage_finished_; | 216 base::Closure on_clear_profile_stage_finished_; |
| 214 | 217 |
| 215 // A currently running browsing data remover. | 218 // A currently running browsing data remover. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 234 std::unique_ptr<FileFlusher> profile_flusher_; | 237 std::unique_ptr<FileFlusher> profile_flusher_; |
| 235 | 238 |
| 236 base::WeakPtrFactory<ProfileHelper> weak_factory_; | 239 base::WeakPtrFactory<ProfileHelper> weak_factory_; |
| 237 | 240 |
| 238 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 241 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 239 }; | 242 }; |
| 240 | 243 |
| 241 } // namespace chromeos | 244 } // namespace chromeos |
| 242 | 245 |
| 243 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 246 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |