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

Unified Diff: webrtc/voice_engine/shared_data.cc

Issue 1607353002: Swap use of CriticalSectionWrapper with rtc::CriticalSection in voice_engine/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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: webrtc/voice_engine/shared_data.cc
diff --git a/webrtc/voice_engine/shared_data.cc b/webrtc/voice_engine/shared_data.cc
index 4bc5b3cf2b6140e636677b01e195d722a1cd3563..1d50c3c0bf691702380ede16fb4eb7b2bfedfb16 100644
--- a/webrtc/voice_engine/shared_data.cc
+++ b/webrtc/voice_engine/shared_data.cc
@@ -11,7 +11,6 @@
#include "webrtc/voice_engine/shared_data.h"
#include "webrtc/modules/audio_processing/include/audio_processing.h"
-#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
#include "webrtc/system_wrappers/include/trace.h"
#include "webrtc/voice_engine/channel.h"
#include "webrtc/voice_engine/output_mixer.h"
@@ -25,7 +24,6 @@ static int32_t _gInstanceCounter = 0;
SharedData::SharedData(const Config& config)
: _instanceId(++_gInstanceCounter),
- _apiCritPtr(CriticalSectionWrapper::CreateCriticalSection()),
_channelManager(_gInstanceCounter, config),
_engineStatistics(_gInstanceCounter),
_audioDevicePtr(NULL),
@@ -51,7 +49,6 @@ SharedData::~SharedData()
if (_audioDevicePtr) {
_audioDevicePtr->Release();
}
- delete _apiCritPtr;
_moduleProcessThreadPtr->Stop();
Trace::ReturnTrace();
}

Powered by Google App Engine
This is Rietveld 408576698