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

Unified Diff: webrtc/base/maccocoathreadhelper.mm

Issue 2325623002: webrtc/base: Use RTC_DCHECK() instead of assert() (Closed)
Patch Set: Created 4 years, 3 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/base/maccocoasocketserver.mm ('k') | webrtc/base/nattypes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/maccocoathreadhelper.mm
diff --git a/webrtc/base/maccocoathreadhelper.mm b/webrtc/base/maccocoathreadhelper.mm
index 59ae6c4c9943f2c7cc00494177a78bc5038f3025..70d920de3980c599beaeead2d061f7f170eff3c8 100644
--- a/webrtc/base/maccocoathreadhelper.mm
+++ b/webrtc/base/maccocoathreadhelper.mm
@@ -9,11 +9,12 @@
*/
// Helper function for using Cocoa with Posix threading.
-#import <assert.h>
#import <Foundation/Foundation.h>
#import "webrtc/base/maccocoathreadhelper.h"
+#include "webrtc/base/checks.h"
+
namespace rtc {
// Cocoa must be "put into multithreading mode" before Cocoa functionality can
@@ -34,7 +35,7 @@ void InitCocoaMultiThreading() {
[hack drain];
}
- assert([NSThread isMultiThreaded]);
+ RTC_DCHECK([NSThread isMultiThreaded]);
}
} // namespace rtc
« no previous file with comments | « webrtc/base/maccocoasocketserver.mm ('k') | webrtc/base/nattypes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698