From d07edd42ce09a444f435c0dcffd4a123dc6f31b9 Mon Sep 17 00:00:00 2001 From: "rlp@chromium.org" Date: Mon, 14 May 2012 23:49:46 +0000 Subject: Taking over issue 10006037. Moved WebDataService to ProfileKeyedService James: chrome\browser\ui\intents Peter: chrome\browser\ui\search_engines chrome\browser\search_engines Nicolas: chrome\browser\sync Rachel/Elliot: chrome\browser\profiles and the whole cl BUG=112234 TEST=unit-tests TBR=jhawkins@chromium.org,pkasting@chromium.org,zea@chromium.org,erg@chromium.org,isherman@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136499 Review URL: https://chromiumcodereview.appspot.com/10185008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137014 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autofill/personal_data_manager_unittest.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '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 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 wds = WebDataServiceFactory::GetForProfile( + profile_.get(), Profile::EXPLICIT_ACCESS); + ASSERT_TRUE(wds.get()); wds->AddAutofillProfile(profile2); personal_data_->Refresh(); -- cgit v1.1