Index: chrome/browser/sync/profile_sync_service_password_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc |
index b90e6448073b9d2b7074a69cd3c6cf7475511e39..8df2badb361264ce3c3d73b1a09f90525a1d4c7b 100644 |
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc |
@@ -32,6 +32,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/common/pref_names.h" |
@@ -157,6 +158,11 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest { |
virtual void SetUp() { |
AbstractProfileSyncServiceTest::SetUp(); |
profile_.CreateRequestContext(); |
+ // WebDataService is not used in ProfileSyncServicePasswordTest, but |
+ // requires correct destruction if instantiated. |
+ WebDataServiceFactory::GetInstance()->SetTestingFactory( |
+ &profile_, NULL); |
+ |
password_store_ = static_cast<MockPasswordStore*>( |
PasswordStoreFactory::GetInstance()->SetTestingFactoryAndUse( |
&profile_, MockPasswordStore::Build).get()); |