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

Unified Diff: media/audio/mac/audio_device_listener_mac_unittest.cc

Issue 66953005: Remove media::BindToLoop() in favour of media::BindToCurrentLoop(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cros Created 6 years, 11 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: media/audio/mac/audio_device_listener_mac_unittest.cc
diff --git a/media/audio/mac/audio_device_listener_mac_unittest.cc b/media/audio/mac/audio_device_listener_mac_unittest.cc
index 7efb32971721a19331d168c1edbb4ce4ff84d48b..3f2840c598c981906b43b1e4670a6b2ff5f9e8b0 100644
--- a/media/audio/mac/audio_device_listener_mac_unittest.cc
+++ b/media/audio/mac/audio_device_listener_mac_unittest.cc
@@ -36,12 +36,11 @@ class AudioDeviceListenerMacTest : public testing::Test {
}
void CreateDeviceListener() {
- // Force a post task using BindToLoop to ensure device listener internals
- // are working correctly.
- output_device_listener_.reset(new AudioDeviceListenerMac(BindToLoop(
- message_loop_.message_loop_proxy(), base::Bind(
- &AudioDeviceListenerMacTest::OnDeviceChange,
- base::Unretained(this)))));
+ // Force a post task using BindToCurrentLoop() to ensure device listener
+ // internals are working correctly.
+ output_device_listener_.reset(new AudioDeviceListenerMac(BindToCurrentLoop(
+ base::Bind(&AudioDeviceListenerMacTest::OnDeviceChange,
+ base::Unretained(this)))));
}
void DestroyDeviceListener() {

Powered by Google App Engine
This is Rietveld 408576698