OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
347 | 347 |
348 // Common initialization between the two constructors. | 348 // Common initialization between the two constructors. |
349 void Init(); | 349 void Init(); |
350 | 350 |
351 // Finishes initialization when a profile is created asynchronously. | 351 // Finishes initialization when a profile is created asynchronously. |
352 void FinishInit(); | 352 void FinishInit(); |
353 | 353 |
354 // Creates a TestingPrefService and associates it with the TestingProfile. | 354 // Creates a TestingPrefService and associates it with the TestingProfile. |
355 void CreateTestingPrefService(); | 355 void CreateTestingPrefService(); |
356 | 356 |
357 // Creates a pref services that uses SupervisedUserPrefStore and associates | |
Marc Treib
2016/05/23 15:32:43
"service", singular
mamir
2016/05/23 19:35:15
Done.
| |
358 // it with the TestingProfile. | |
359 void CreatePrefServiceForSupervisedUser(); | |
360 | |
357 // Initializes |prefs_| for an incognito profile, derived from | 361 // Initializes |prefs_| for an incognito profile, derived from |
358 // |original_profile_|. | 362 // |original_profile_|. |
359 void CreateIncognitoPrefService(); | 363 void CreateIncognitoPrefService(); |
360 | 364 |
361 // Creates a ProfilePolicyConnector that the ProfilePolicyConnectorFactory | 365 // Creates a ProfilePolicyConnector that the ProfilePolicyConnectorFactory |
362 // maps to this profile. | 366 // maps to this profile. |
363 void CreateProfilePolicyConnector(); | 367 void CreateProfilePolicyConnector(); |
364 | 368 |
365 // Internally, this is a TestURLRequestContextGetter that creates a dummy | 369 // Internally, this is a TestURLRequestContextGetter that creates a dummy |
366 // request context. Currently, only the CookieMonster is hooked up. | 370 // request context. Currently, only the CookieMonster is hooked up. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
409 | 413 |
410 // Weak pointer to a delegate for indicating that a profile was created. | 414 // Weak pointer to a delegate for indicating that a profile was created. |
411 Delegate* delegate_; | 415 Delegate* delegate_; |
412 | 416 |
413 std::string profile_name_; | 417 std::string profile_name_; |
414 | 418 |
415 std::unique_ptr<policy::PolicyService> policy_service_; | 419 std::unique_ptr<policy::PolicyService> policy_service_; |
416 }; | 420 }; |
417 | 421 |
418 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 422 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |