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

Unified Diff: media/audio/win/audio_manager_win.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/win/audio_manager_win.cc
diff --git a/media/audio/win/audio_manager_win.cc b/media/audio/win/audio_manager_win.cc
index 5e105dbd8ac24716278e40f9beb61fac19862803..42f3591b1eb487bea9a3a2b8dae4dbda7f2a6959 100644
--- a/media/audio/win/audio_manager_win.cc
+++ b/media/audio/win/audio_manager_win.cc
@@ -165,10 +165,9 @@ void AudioManagerWin::CreateDeviceListener() {
// AudioDeviceListenerWin must be initialized on a COM thread and should only
// be used if WASAPI / Core Audio is supported.
if (CoreAudioUtil::IsSupported()) {
- output_device_listener_.reset(new AudioDeviceListenerWin(BindToLoop(
- GetTaskRunner(), base::Bind(
- &AudioManagerWin::NotifyAllOutputDeviceChangeListeners,
- base::Unretained(this)))));
+ output_device_listener_.reset(new AudioDeviceListenerWin(BindToCurrentLoop(
+ base::Bind(&AudioManagerWin::NotifyAllOutputDeviceChangeListeners,
+ base::Unretained(this)))));
}
}

Powered by Google App Engine
This is Rietveld 408576698