Index: chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
index bbcde9e6226f861d0cc553a8b9764bc82df6b5a2..103c90e2ff4490948f015f754d11a9344d4684a9 100644 |
--- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
@@ -36,6 +36,7 @@ |
#include "chrome/browser/sync/profile_sync_service.h" |
#include "chrome/browser/sync/profile_sync_test_util.h" |
#include "chrome/browser/sync/test_profile_sync_service.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/net/gaia/gaia_constants.h" |
#include "chrome/test/base/profile_mock.h" |
@@ -162,6 +163,10 @@ class ProfileSyncServiceTypedUrlTest : public AbstractProfileSyncServiceTest { |
virtual void SetUp() { |
AbstractProfileSyncServiceTest::SetUp(); |
+ // WebDataService is not used in ProfileSyncServiceTests, but requires |
+ // correct destruction if instantiated. |
+ WebDataServiceFactory::GetInstance()->SetTestingFactory( |
+ &profile_, NULL); |
profile_.CreateRequestContext(); |
history_backend_ = new HistoryBackendMock(); |
history_service_ = new HistoryServiceMock(); |