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