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

Unified Diff: webrtc/system_wrappers/source/rw_lock.cc

Issue 2790533002: Remove ALL usage of CriticalSectionWrapper. (Closed)
Patch Set: remove winXP rw_lock include Created 3 years, 9 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/system_wrappers/source/rw_lock.cc
diff --git a/webrtc/system_wrappers/source/rw_lock.cc b/webrtc/system_wrappers/source/rw_lock.cc
index 7c77123a0b7eb79aa156174cd79b63322f823718..ff53e8d7a63dc3f4903a470f4e5f433f777a84dd 100644
--- a/webrtc/system_wrappers/source/rw_lock.cc
+++ b/webrtc/system_wrappers/source/rw_lock.cc
@@ -14,7 +14,6 @@
#if defined(_WIN32)
#include "webrtc/system_wrappers/source/rw_lock_win.h"
-#include "webrtc/system_wrappers/source/rw_lock_winxp_win.h"
#else
#include "webrtc/system_wrappers/source/rw_lock_posix.h"
#endif
@@ -23,12 +22,7 @@ namespace webrtc {
RWLockWrapper* RWLockWrapper::CreateRWLock() {
#ifdef _WIN32
- // Native implementation is faster, so use that if available.
- RWLockWrapper* lock = RWLockWin::Create();
- if (lock) {
- return lock;
- }
- return new RWLockWinXP();
+ return RWLockWin::Create();
#else
return RWLockPosix::Create();
#endif
« no previous file with comments | « webrtc/system_wrappers/source/critical_section_unittest.cc ('k') | webrtc/system_wrappers/source/rw_lock_winxp_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698