Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5206)

Unified Diff: components/autofill/browser/personal_data_manager_unittest.cc

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/personal_data_manager_unittest.cc
diff --git a/components/autofill/browser/personal_data_manager_unittest.cc b/components/autofill/browser/personal_data_manager_unittest.cc
index 99ad37422e6b87e699a82b8f44a19eaa68d0993a..5971059831014be2c91bc540e3b7763e59a0bfe4 100644
--- a/components/autofill/browser/personal_data_manager_unittest.cc
+++ b/components/autofill/browser/personal_data_manager_unittest.cc
@@ -10,6 +10,7 @@
#include "base/message_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/browser/autofill_common_test.h"
@@ -94,7 +95,10 @@ class PersonalDataManagerTest : public testing::Test {
void ResetPersonalDataManager() {
personal_data_.reset(new PersonalDataManager("en-US"));
- personal_data_->Init(profile_.get());
+ personal_data_->Init(
+ profile_.get(),
+ WebDataServiceFactory::GetAutofillWebDataServiceForProfile(
+ profile_.get()));
personal_data_->AddObserver(&personal_data_observer_);
// Verify that the web database has been updated and the notification sent.
@@ -461,7 +465,8 @@ TEST_F(PersonalDataManagerTest, Refresh) {
AutofillProfile::AdjustInferredLabels(&profile_pointers);
scoped_refptr<AutofillWebDataService> wds =
- AutofillWebDataService::FromBrowserContext(profile_.get());
+ WebDataServiceFactory::GetAutofillWebDataServiceForProfile(
+ profile_.get());
ASSERT_TRUE(wds.get());
wds->AddAutofillProfile(profile2);

Powered by Google App Engine
This is Rietveld 408576698