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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.h

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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/UTF8.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/WTFString.h
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
index 7460ac18cfe83a0f960a9c98ada72ba51fb29ae9..77f82c4c06e76df19ed1c6f6b87a87bbd6418058 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h
@@ -124,14 +124,14 @@ class WTF_EXPORT String {
const LChar* characters8() const {
if (!m_impl)
return 0;
- ASSERT(m_impl->is8Bit());
+ DCHECK(m_impl->is8Bit());
return m_impl->characters8();
}
const UChar* characters16() const {
if (!m_impl)
return 0;
- ASSERT(!m_impl->is8Bit());
+ DCHECK(!m_impl->is8Bit());
return m_impl->characters16();
}
@@ -523,13 +523,13 @@ String::String(const Vector<UChar, inlineCapacity>& vector)
template <>
inline const LChar* String::getCharacters<LChar>() const {
- ASSERT(is8Bit());
+ DCHECK(is8Bit());
return characters8();
}
template <>
inline const UChar* String::getCharacters<UChar>() const {
- ASSERT(!is8Bit());
+ DCHECK(!is8Bit());
return characters16();
}
« no previous file with comments | « third_party/WebKit/Source/wtf/text/UTF8.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698