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

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

Issue 1083883003: Move BindToCurrentLoop from media/base/ to base/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix media/base/callback_holder.h compile Created 5 years, 8 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
« no previous file with comments | « media/audio/mac/audio_device_listener_mac_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_manager_mac.cc
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
index b3d5978f044226ad26f2aea1efd05d1032c8f19e..2b765a89d1e1925f9486c9f1520c400024ae8f9d 100644
--- a/media/audio/mac/audio_manager_mac.cc
+++ b/media/audio/mac/audio_manager_mac.cc
@@ -8,6 +8,7 @@
#include <string>
#include "base/bind.h"
+#include "base/bind_to_current_loop.h"
#include "base/command_line.h"
#include "base/mac/mac_logging.h"
#include "base/mac/scoped_cftyperef.h"
@@ -19,7 +20,6 @@
#include "media/audio/mac/audio_auhal_mac.h"
#include "media/audio/mac/audio_input_mac.h"
#include "media/audio/mac/audio_low_latency_input_mac.h"
-#include "media/base/bind_to_current_loop.h"
#include "media/base/channel_layout.h"
#include "media/base/limits.h"
#include "media/base/media_switches.h"
@@ -567,7 +567,7 @@ AudioOutputStream* AudioManagerMac::MakeLowLatencyOutputStream(
// fire the callbacks during stream creation, leading to re-entrancy issues
// otherwise. See http://crbug.com/349604
output_device_listener_.reset(
- new AudioDeviceListenerMac(BindToCurrentLoop(base::Bind(
+ new AudioDeviceListenerMac(base::BindToCurrentLoop(base::Bind(
&AudioManagerMac::HandleDeviceChanges, base::Unretained(this)))));
// Only set the current output device for the default device.
if (device_id == AudioManagerBase::kDefaultDeviceId || device_id.empty())
« no previous file with comments | « media/audio/mac/audio_device_listener_mac_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698