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

Unified Diff: third_party/WebKit/Source/wtf/text/StringStatics.cpp

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 years 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/text/StringStatics.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringStatics.cpp b/third_party/WebKit/Source/wtf/text/StringStatics.cpp
index 7d4890676d0f1fd77e58038399d9da0aa3d4434a..2bb0dbe5fc6bf8bc5138847c38e106e5ec92d968 100644
--- a/third_party/WebKit/Source/wtf/text/StringStatics.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringStatics.cpp
@@ -71,7 +71,7 @@ NEVER_INLINE unsigned StringImpl::hashSlowCase() const {
}
void AtomicString::init() {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
new (NotNull, (void*)&nullAtom) AtomicString;
new (NotNull, (void*)&emptyAtom) AtomicString("");
@@ -87,7 +87,7 @@ PassRefPtr<StringImpl> addStaticASCIILiteral(
}
void StringStatics::init() {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
// FIXME: These should be allocated at compile time.
new (NotNull, (void*)&starAtom) AtomicString("*");
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringOperators.h ('k') | third_party/WebKit/Source/wtf/text/TextCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698