Index: chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc |
diff --git a/chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc b/chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc |
index 74c07d0e2b7a44a6a6126a3ba4a653378f5c8341..c0cacf6a939d2776de34674143952625d73a80a3 100644 |
--- a/chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc |
+++ b/chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc |
@@ -205,11 +205,11 @@ class RemovableDeviceNotificationLinuxTest : public testing::Test { |
notifications_ = new RemovableDeviceNotificationsLinuxTestWrapper( |
mtab_file_, &message_loop_); |
notifications_->Init(); |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
} |
virtual void TearDown() OVERRIDE { |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
notifications_ = NULL; |
system_monitor_.RemoveDevicesChangedObserver( |
mock_devices_changed_observer_.get()); |