Index: chrome/browser/autocomplete/autocomplete_unittest.cc |
diff --git a/chrome/browser/autocomplete/autocomplete_unittest.cc b/chrome/browser/autocomplete/autocomplete_unittest.cc |
index 9caf94b35b196a183f90e5977a157fb156f7add2..35459f7737f70c97f5b19712e70bd37d9ce21945 100644 |
--- a/chrome/browser/autocomplete/autocomplete_unittest.cc |
+++ b/chrome/browser/autocomplete/autocomplete_unittest.cc |
@@ -16,6 +16,7 @@ |
#include "chrome/browser/search_engines/template_url.h" |
#include "chrome/browser/search_engines/template_url_service.h" |
#include "chrome/browser/search_engines/template_url_service_factory.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/test/base/testing_browser_process.h" |
#include "chrome/test/base/testing_profile.h" |
@@ -179,6 +180,10 @@ void AutocompleteProviderTest::ResetControllerWithTestProviders( |
void AutocompleteProviderTest:: |
ResetControllerWithTestProvidersWithKeywordAndSearchProviders() { |
+ // WebDataService is not used in the test, but requires DB thread if |
+ // instantiated. |
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(&profile_, NULL); |
+ |
profile_.CreateTemplateURLService(); |
// Reset the default TemplateURL. |
@@ -218,6 +223,9 @@ void AutocompleteProviderTest:: |
void AutocompleteProviderTest:: |
ResetControllerWithKeywordProvider() { |
+ // WebDataService is not used in the test, but requires DB thread if |
+ // instantiated. |
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(&profile_, NULL); |
profile_.CreateTemplateURLService(); |
TemplateURLService* turl_model = |