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

Unified Diff: components/audio_modem/audio_recorder_impl.cc

Issue 2028023002: Use valid log callback for audio modem's audio recorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | media/audio/mac/audio_auhal_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/audio_recorder_impl.cc
diff --git a/components/audio_modem/audio_recorder_impl.cc b/components/audio_modem/audio_recorder_impl.cc
index b5ed82907a28d1baee687db85f244862b6741491..43633fad8072f81094d19ba0ef29f3712e4982d4 100644
--- a/components/audio_modem/audio_recorder_impl.cc
+++ b/components/audio_modem/audio_recorder_impl.cc
@@ -49,6 +49,8 @@ void ProcessSamples(
content::BrowserThread::UI, FROM_HERE, base::Bind(callback, samples));
}
+void OnLogMessage(const std::string& message) {}
+
} // namespace
// Public methods.
@@ -115,7 +117,7 @@ void AudioRecorderImpl::InitializeOnAudioThread() {
? input_stream_for_testing_.get()
: media::AudioManager::Get()->MakeAudioInputStream(
params, media::AudioDeviceDescription::kDefaultDeviceId,
- media::AudioManager::LogCallback());
+ base::Bind(&OnLogMessage));
if (!stream_ || !stream_->Open()) {
LOG(ERROR) << "Failed to open an input stream.";
« no previous file with comments | « no previous file | media/audio/mac/audio_auhal_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698