Index: chrome/browser/search_engines/template_url_service_sync_unittest.cc |
diff --git a/chrome/browser/search_engines/template_url_service_sync_unittest.cc b/chrome/browser/search_engines/template_url_service_sync_unittest.cc |
index 8179cea763a4419da7a3775d88c6080571238b8d..6068cf539ad2febd98791cd905bc798edba940a7 100644 |
--- a/chrome/browser/search_engines/template_url_service_sync_unittest.cc |
+++ b/chrome/browser/search_engines/template_url_service_sync_unittest.cc |
@@ -9,6 +9,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/common/pref_names.h" |
#include "chrome/test/base/testing_pref_service.h" |
@@ -241,16 +242,19 @@ class TemplateURLServiceSyncTest : public testing::Test { |
TemplateURLServiceSyncTest::TemplateURLServiceSyncTest() |
: sync_processor_(new TestChangeProcessor), |
sync_processor_delegate_(new SyncChangeProcessorDelegate( |
- sync_processor_.get())) { |
-} |
+ sync_processor_.get())) {} |
void TemplateURLServiceSyncTest::SetUp() { |
profile_a_.reset(new TestingProfile); |
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(profile_a_.get(), |
+ NULL); |
TemplateURLServiceFactory::GetInstance()->RegisterUserPrefsOnProfile( |
profile_a_.get()); |
model_a_.reset(new TemplateURLService(profile_a_.get())); |
model_a_->Load(); |
profile_b_.reset(new TestingProfile); |
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(profile_b_.get(), |
+ NULL); |
TemplateURLServiceFactory::GetInstance()->RegisterUserPrefsOnProfile( |
profile_b_.get()); |
model_b_.reset(new TemplateURLService(profile_b_.get())); |