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

Unified Diff: chrome/browser/media_gallery/media_galleries_preferences_unittest.cc

Issue 10831217: Fix leaks in MediaGalleriesPreferencesTest.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment Created 8 years, 4 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
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_gallery/media_galleries_preferences_unittest.cc
diff --git a/chrome/browser/media_gallery/media_galleries_preferences_unittest.cc b/chrome/browser/media_gallery/media_galleries_preferences_unittest.cc
index a92d5c87bf2f1ce54534bb4b4bd29b482086bf5d..4ce58f967f534bef8208e7802f933dddcf20b696 100644
--- a/chrome/browser/media_gallery/media_galleries_preferences_unittest.cc
+++ b/chrome/browser/media_gallery/media_galleries_preferences_unittest.cc
@@ -45,7 +45,12 @@ class MediaGalleriesPreferencesTest : public testing::Test {
default_galleries_count_(0) {
}
- virtual ~MediaGalleriesPreferencesTest() {}
+ virtual ~MediaGalleriesPreferencesTest() {
+ // TestExtensionSystem uses DeleteSoon, so we need to delete the profile
+ // and then run the message queue to clean up.
+ profile_.reset();
+ MessageLoop::current()->RunAllPending();
+ }
virtual void SetUp() OVERRIDE {
CommandLine::ForCurrentProcess()->AppendSwitch(
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698