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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 years, 10 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: chrome/browser/sync/profile_sync_service_autofill_unittest.cc
===================================================================
--- chrome/browser/sync/profile_sync_service_autofill_unittest.cc (revision 122721)
+++ chrome/browser/sync/profile_sync_service_autofill_unittest.cc (working copy)
@@ -380,10 +380,6 @@
WillRepeatedly(Return(web_data_service_.get()));
personal_data_manager_->Init(&profile_);
- notification_service_ = new ThreadNotificationService(
- db_thread_.DeprecatedGetThreadObject());
- notification_service_->Init();
-
// Note: This must be called *after* the notification service is created.
web_data_service_->StartSyncableService();
}
@@ -392,7 +388,6 @@
// Note: The tear down order is important.
service_.reset();
web_data_service_->ShutdownSyncableService();
- notification_service_->TearDown();
profile_.ResetRequestContext();
AbstractProfileSyncServiceTest::TearDown();
}
@@ -572,8 +567,6 @@
friend class AddAutofillHelper<AutofillProfile>;
friend class FakeServerUpdater;
- scoped_refptr<ThreadNotificationService> notification_service_;
-
ProfileMock profile_;
AutofillTableMock autofill_table_;
scoped_ptr<WebDatabaseFake> web_database_;

Powered by Google App Engine
This is Rietveld 408576698