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

Unified Diff: webrtc/pc/localaudiosource.cc

Issue 2682253002: Remove PC factory options param from LocalAudioSource::Create. (Closed)
Patch Set: Rebase onto master Created 3 years, 10 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 | « webrtc/pc/localaudiosource.h ('k') | webrtc/pc/localaudiosource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/localaudiosource.cc
diff --git a/webrtc/pc/localaudiosource.cc b/webrtc/pc/localaudiosource.cc
index 3d79da96c5c2293660bbf043b046e3b8d1813b77..5454cdfaaec0bbf9f1f0c9fd146e686bd994e6ac 100644
--- a/webrtc/pc/localaudiosource.cc
+++ b/webrtc/pc/localaudiosource.cc
@@ -21,31 +21,27 @@ using webrtc::MediaSourceInterface;
namespace webrtc {
rtc::scoped_refptr<LocalAudioSource> LocalAudioSource::Create(
- const PeerConnectionFactoryInterface::Options& options,
const MediaConstraintsInterface* constraints) {
rtc::scoped_refptr<LocalAudioSource> source(
new rtc::RefCountedObject<LocalAudioSource>());
- source->Initialize(options, constraints);
+ source->Initialize(constraints);
return source;
}
rtc::scoped_refptr<LocalAudioSource> LocalAudioSource::Create(
- const PeerConnectionFactoryInterface::Options& options,
const cricket::AudioOptions* audio_options) {
rtc::scoped_refptr<LocalAudioSource> source(
new rtc::RefCountedObject<LocalAudioSource>());
- source->Initialize(options, audio_options);
+ source->Initialize(audio_options);
return source;
}
void LocalAudioSource::Initialize(
- const PeerConnectionFactoryInterface::Options& options,
const MediaConstraintsInterface* constraints) {
CopyConstraintsIntoAudioOptions(constraints, &options_);
}
void LocalAudioSource::Initialize(
- const PeerConnectionFactoryInterface::Options& options,
const cricket::AudioOptions* audio_options) {
if (!audio_options)
return;
« no previous file with comments | « webrtc/pc/localaudiosource.h ('k') | webrtc/pc/localaudiosource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698