Index: chrome/browser/autofill/personal_data_manager_unittest.cc |
diff --git a/chrome/browser/autofill/personal_data_manager_unittest.cc b/chrome/browser/autofill/personal_data_manager_unittest.cc |
index 0daccb7e472becb4cb4f2a64e789a447b9535c4c..8433c6d89be914e607e1e63b1fbc3cde8d38ce8c 100644 |
--- a/chrome/browser/autofill/personal_data_manager_unittest.cc |
+++ b/chrome/browser/autofill/personal_data_manager_unittest.cc |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/autofill/personal_data_manager.h" |
#include "chrome/browser/autofill/personal_data_manager_observer.h" |
#include "chrome/browser/password_manager/encryptor.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/guid.h" |
#include "chrome/test/base/testing_browser_process.h" |
#include "chrome/test/base/testing_profile.h" |
@@ -54,7 +55,6 @@ class PersonalDataManagerTest : public testing::Test { |
db_thread_.Start(); |
profile_.reset(new TestingProfile); |
- profile_->CreateWebDataService(false); |
autofill_test::DisableSystemServices(profile_.get()); |
ResetPersonalDataManager(); |
@@ -438,8 +438,9 @@ TEST_F(PersonalDataManagerTest, Refresh) { |
profile_pointers.push_back(&profile2); |
AutofillProfile::AdjustInferredLabels(&profile_pointers); |
- WebDataService* wds = profile_->GetWebDataService(Profile::EXPLICIT_ACCESS); |
- ASSERT_TRUE(wds); |
+ scoped_refptr<WebDataService> wds = WebDataServiceFactory::GetForProfile( |
+ profile_.get(), Profile::EXPLICIT_ACCESS); |
+ ASSERT_TRUE(wds.get()); |
wds->AddAutofillProfile(profile2); |
personal_data_->Refresh(); |