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

Unified Diff: chrome/browser/sync/profile_sync_service_password_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_password_unittest.cc
===================================================================
--- chrome/browser/sync/profile_sync_service_password_unittest.cc (revision 122721)
+++ chrome/browser/sync/profile_sync_service_password_unittest.cc (working copy)
@@ -181,9 +181,6 @@
profile_.CreateRequestContext();
password_store_ = new MockPasswordStore();
- notification_service_ = new ThreadNotificationService(
- db_thread_.DeprecatedGetThreadObject());
- notification_service_->Init();
registrar_.Add(&observer_,
chrome::NOTIFICATION_SYNC_CONFIGURE_DONE,
content::NotificationService::AllSources());
@@ -195,7 +192,6 @@
virtual void TearDown() {
password_store_->Shutdown();
service_.reset();
- notification_service_->TearDown();
profile_.ResetRequestContext();
AbstractProfileSyncServiceTest::TearDown();
}
@@ -315,7 +311,6 @@
EXPECT_CALL(*password_store_, RemoveLoginImpl(_)).Times(0);
}
- scoped_refptr<ThreadNotificationService> notification_service_;
content::NotificationObserverMock observer_;
ProfileMock profile_;
scoped_refptr<MockPasswordStore> password_store_;

Powered by Google App Engine
This is Rietveld 408576698