Index: chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux_unittest.cc |
diff --git a/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux_unittest.cc b/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux_unittest.cc |
index 8fee159ced1550a79319e97558d35ab7cd110f44..b4db1261e86baf5f209493412e926bd620d170a6 100644 |
--- a/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux_unittest.cc |
+++ b/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux_unittest.cc |
@@ -90,7 +90,7 @@ class MediaTransferProtocolDeviceObserverLinuxTest |
void MtpStorageAttached(const std::string& storage_name) { |
MediaTransferProtocolDeviceObserverLinux::StorageChanged(true, |
storage_name); |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
} |
// Notifies MediaTransferProtocolDeviceObserverLinux about the detachment of |
@@ -98,7 +98,7 @@ class MediaTransferProtocolDeviceObserverLinuxTest |
void MtpStorageDetached(const std::string& storage_name) { |
MediaTransferProtocolDeviceObserverLinux::StorageChanged(false, |
storage_name); |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
} |
private: |