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

Unified Diff: third_party/WebKit/Source/platform/wtf/ThreadSpecificWin.cpp

Issue 2919653004: Use LOG() or LOG_IF() instead of IMMEDIATE_CRASH (Closed)
Patch Set: Use LOG() or CHECK()|CHECK_FOO() instead of IMMEDIATE_CRASH Created 3 years, 6 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/platform/wtf/ThreadSpecificWin.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/ThreadSpecificWin.cpp b/third_party/WebKit/Source/platform/wtf/ThreadSpecificWin.cpp
index b54917ece1be9c1dcf122c2d430ebccb7887b546..5f128966ace6045d736b8caaca26af43eaf9e901 100644
--- a/third_party/WebKit/Source/platform/wtf/ThreadSpecificWin.cpp
+++ b/third_party/WebKit/Source/platform/wtf/ThreadSpecificWin.cpp
@@ -52,8 +52,7 @@ class PlatformThreadSpecificKey
PlatformThreadSpecificKey(void (*destructor)(void*))
: destructor_(destructor) {
tls_key_ = TlsAlloc();
- if (tls_key_ == TLS_OUT_OF_INDEXES)
- IMMEDIATE_CRASH();
+ CHECK_NE(tls_key_, TLS_OUT_OF_INDEXES);
}
~PlatformThreadSpecificKey() { TlsFree(tls_key_); }
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/ThreadSpecific.h ('k') | third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698