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 4da51ab7ab85ed4a1540b6d5545d73b139b2aef1..66e56b5ce8f575f54cfcfe6a96815c6c7a33a24d 100644 |
--- a/chrome/browser/media_gallery/media_galleries_preferences_unittest.cc |
+++ b/chrome/browser/media_gallery/media_galleries_preferences_unittest.cc |
@@ -66,7 +66,7 @@ class MediaGalleriesPreferencesTest : public testing::Test { |
// TestExtensionSystem uses DeleteSoon, so we need to delete the profile |
// and then run the message queue to clean up. |
profile_.reset(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
virtual void SetUp() OVERRIDE { |