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

Unified Diff: chrome/browser/media_galleries/media_file_system_registry_unittest.cc

Issue 20003005: Fix remaining leaks in StorageMonitorLinux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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/media_galleries/media_file_system_registry_unittest.cc
===================================================================
--- chrome/browser/media_galleries/media_file_system_registry_unittest.cc (revision 213177)
+++ chrome/browser/media_galleries/media_file_system_registry_unittest.cc (working copy)
@@ -378,8 +378,6 @@
scoped_ptr<chromeos::ScopedTestUserManager> test_user_manager_;
#endif
- scoped_ptr<chrome::test::TestStorageMonitor> monitor_;
-
MockProfileSharedRenderProcessHostFactory rph_factory_;
ScopedVector<ProfileState> profile_states_;
@@ -747,11 +745,7 @@
void MediaFileSystemRegistryTest::SetUp() {
ChromeRenderViewHostTestHarness::SetUp();
- monitor_.reset(new test::TestStorageMonitor());
- monitor_->MarkInitialized();
- base::RunLoop runloop;
- monitor_->EnsureInitialized(runloop.QuitClosure());
- runloop.Run();
+ ASSERT_TRUE(test::TestStorageMonitor::CreateAndInstall());
DeleteContents();
SetRenderProcessHostFactory(&rph_factory_);

Powered by Google App Engine
This is Rietveld 408576698