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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc

Issue 72613006: Eliminate AutofillWebDataService::FromBrowserContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
index 9d8a12c3033ebaa66869d4bd95107c72c11d7036..d43df9780f45a628d45bcfdce0e95447bee3ac35 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
@@ -222,7 +222,7 @@ class SyncAutofillDataTypeControllerTest : public testing::Test {
TEST_F(SyncAutofillDataTypeControllerTest, StartWDSReady) {
FakeWebDataService* web_db =
static_cast<FakeWebDataService*>(
- AutofillWebDataService::FromBrowserContext(&profile_).get());
+ WebDataServiceFactory::GetAutofillWebDataForProfile(&profile_).get());
web_db->LoadDatabase();
autofill_dtc_->LoadModels(
base::Bind(&SyncAutofillDataTypeControllerTest::OnLoadFinished,
@@ -255,7 +255,7 @@ TEST_F(SyncAutofillDataTypeControllerTest, StartWDSNotReady) {
FakeWebDataService* web_db =
static_cast<FakeWebDataService*>(
- AutofillWebDataService::FromBrowserContext(&profile_).get());
+ WebDataServiceFactory::GetAutofillWebDataForProfile(&profile_).get());
Ilya Sherman 2013/11/14 23:54:33 nit: This line should be indented two more spaces.
blundell 2013/11/19 14:05:37 Done.
web_db->LoadDatabase();
EXPECT_CALL(*change_processor_.get(), Connect(_, _, _, _, _))
@@ -274,7 +274,7 @@ TEST_F(SyncAutofillDataTypeControllerTest, StartWDSNotReady) {
TEST_F(SyncAutofillDataTypeControllerTest, UpdateAutofillCullingSettings) {
FakeWebDataService* web_db =
static_cast<FakeWebDataService*>(
- AutofillWebDataService::FromBrowserContext(&profile_).get());
+ WebDataServiceFactory::GetAutofillWebDataForProfile(&profile_).get());
// Set up the experiments state.
ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(

Powered by Google App Engine
This is Rietveld 408576698