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

Unified Diff: third_party/WebKit/Source/wtf/WTF.cpp

Issue 1992873004: Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Specialized dchecks in utils.h. Created 4 years, 7 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/wtf/WTF.cpp
diff --git a/third_party/WebKit/Source/wtf/WTF.cpp b/third_party/WebKit/Source/wtf/WTF.cpp
index e064d14901d5ce8066551d6854d162d3c363267a..9f045b546589c7eca91f43676dec3a7b909a95e8 100644
--- a/third_party/WebKit/Source/wtf/WTF.cpp
+++ b/third_party/WebKit/Source/wtf/WTF.cpp
@@ -65,8 +65,8 @@ void initialize(void (*callOnMainThreadFunction)(MainThreadFunction, void*))
{
// WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
// Make that explicit here.
- RELEASE_ASSERT(!s_initialized);
- RELEASE_ASSERT(!s_shutdown);
+ CHECK(!s_initialized);
+ CHECK(!s_shutdown);
s_initialized = true;
initializeThreading();
@@ -78,8 +78,8 @@ void initialize(void (*callOnMainThreadFunction)(MainThreadFunction, void*))
void shutdown()
{
- RELEASE_ASSERT(s_initialized);
- RELEASE_ASSERT(!s_shutdown);
+ CHECK(s_initialized);
+ CHECK(!s_shutdown);
s_shutdown = true;
}

Powered by Google App Engine
This is Rietveld 408576698