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

Unified Diff: components/audio_modem/audio_recorder_impl.cc

Issue 2028083002: Revert of 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 43633fad8072f81094d19ba0ef29f3712e4982d4..b5ed82907a28d1baee687db85f244862b6741491 100644
--- a/components/audio_modem/audio_recorder_impl.cc
+++ b/components/audio_modem/audio_recorder_impl.cc
@@ -49,8 +49,6 @@
content::BrowserThread::UI, FROM_HERE, base::Bind(callback, samples));
}
-void OnLogMessage(const std::string& message) {}
-
} // namespace
// Public methods.
@@ -117,7 +115,7 @@
? input_stream_for_testing_.get()
: media::AudioManager::Get()->MakeAudioInputStream(
params, media::AudioDeviceDescription::kDefaultDeviceId,
- base::Bind(&OnLogMessage));
+ media::AudioManager::LogCallback());
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