| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 #endif | 159 #endif |
| 160 scoped_ptr<PrefServiceSyncable> prefs, | 160 scoped_ptr<PrefServiceSyncable> prefs, |
| 161 TestingProfile* parent, | 161 TestingProfile* parent, |
| 162 bool guest_session, | 162 bool guest_session, |
| 163 const std::string& supervised_user_id, | 163 const std::string& supervised_user_id, |
| 164 scoped_ptr<policy::PolicyService> policy_service, | 164 scoped_ptr<policy::PolicyService> policy_service, |
| 165 const TestingFactories& factories); | 165 const TestingFactories& factories); |
| 166 | 166 |
| 167 ~TestingProfile() override; | 167 ~TestingProfile() override; |
| 168 | 168 |
| 169 // Creates the fallback icon service. | |
| 170 void CreateFallbackIconService(); | |
| 171 | |
| 172 // Creates the favicon service. Consequent calls would recreate the service. | 169 // Creates the favicon service. Consequent calls would recreate the service. |
| 173 void CreateFaviconService(); | 170 void CreateFaviconService(); |
| 174 | 171 |
| 175 // Creates the history service. If |delete_file| is true, the history file is | 172 // Creates the history service. If |delete_file| is true, the history file is |
| 176 // deleted first, then the HistoryService is created. As TestingProfile | 173 // deleted first, then the HistoryService is created. As TestingProfile |
| 177 // deletes the directory containing the files used by HistoryService, this | 174 // deletes the directory containing the files used by HistoryService, this |
| 178 // only matters if you're recreating the HistoryService. If |no_db| is true, | 175 // only matters if you're recreating the HistoryService. If |no_db| is true, |
| 179 // the history backend will fail to initialize its database; this is useful | 176 // the history backend will fail to initialize its database; this is useful |
| 180 // for testing error conditions. Returns true on success. | 177 // for testing error conditions. Returns true on success. |
| 181 bool CreateHistoryService(bool delete_file, bool no_db) WARN_UNUSED_RESULT; | 178 bool CreateHistoryService(bool delete_file, bool no_db) WARN_UNUSED_RESULT; |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 | 409 |
| 413 // Weak pointer to a delegate for indicating that a profile was created. | 410 // Weak pointer to a delegate for indicating that a profile was created. |
| 414 Delegate* delegate_; | 411 Delegate* delegate_; |
| 415 | 412 |
| 416 std::string profile_name_; | 413 std::string profile_name_; |
| 417 | 414 |
| 418 scoped_ptr<policy::PolicyService> policy_service_; | 415 scoped_ptr<policy::PolicyService> policy_service_; |
| 419 }; | 416 }; |
| 420 | 417 |
| 421 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 418 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |