| Index: chrome/browser/autofill/personal_data_manager_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/autofill/personal_data_manager_unittest.cc (revision 136877)
|
| +++ chrome/browser/autofill/personal_data_manager_unittest.cc (working copy)
|
| @@ -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 @@
|
| db_thread_.Start();
|
|
|
| profile_.reset(new TestingProfile);
|
| - profile_->CreateWebDataService(false);
|
| + profile_->CreateWebDataService();
|
|
|
| autofill_test::DisableSystemServices(profile_.get());
|
| ResetPersonalDataManager();
|
| @@ -438,8 +439,9 @@
|
| 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();
|
|
|