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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp

Issue 2817533003: Replace ASSERT, RELEASE_ASSERT, and ASSERT_NOT_REACHED in bindings (Closed)
Patch Set: fixed dcheck build error Created 3 years, 8 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: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
index ed43b25ead964d0c04c40365213ceae7ebea5042..b60b02b9cf4110718e8006e4e30cff44e567b863 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
@@ -140,7 +140,9 @@ class SourceStreamDataQueue {
private:
bool TryGetData(const uint8_t** data, size_t* length) {
- ASSERT(mutex_.Locked());
+#if DCHECK_IS_ON()
+ DCHECK(mutex_.Locked());
+#endif
if (!data_.IsEmpty()) {
std::pair<const uint8_t*, size_t> next_data = data_.TakeFirst();
*data = next_data.first;

Powered by Google App Engine
This is Rietveld 408576698