summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager_unittest.cc')
-rw-r--r--chrome/browser/autofill/personal_data_manager_unittest.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/autofill/personal_data_manager_unittest.cc b/chrome/browser/autofill/personal_data_manager_unittest.cc
index 0daccb7..be512d0 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,7 @@ class PersonalDataManagerTest : public testing::Test {
db_thread_.Start();
profile_.reset(new TestingProfile);
- profile_->CreateWebDataService(false);
+ profile_->CreateWebDataService();
autofill_test::DisableSystemServices(profile_.get());
ResetPersonalDataManager();
@@ -438,8 +439,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();