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

Unified Diff: third_party/WebKit/Source/platform/wtf/text/StringImplCF.cpp

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase 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
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/dtoa/fast-dtoa.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/wtf/text/StringImplCF.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/text/StringImplCF.cpp b/third_party/WebKit/Source/platform/wtf/text/StringImplCF.cpp
index 45950bf943e1890a0ccdccd4852469d15a773a53..6aed879b0f057560690102405e432ec6075a6a22 100644
--- a/third_party/WebKit/Source/platform/wtf/text/StringImplCF.cpp
+++ b/third_party/WebKit/Source/platform/wtf/text/StringImplCF.cpp
@@ -65,7 +65,7 @@ static void* Allocate(CFIndex size, CFOptionFlags, void*) {
static void* Reallocate(void* pointer, CFIndex new_size, CFOptionFlags, void*) {
size_t new_allocation_size = sizeof(StringImpl*) + new_size;
StringImpl** header = static_cast<StringImpl**>(pointer) - 1;
- ASSERT(!*header);
+ DCHECK(!*header);
header = static_cast<StringImpl**>(WTF::Partitions::FastRealloc(
header, new_allocation_size, WTF_HEAP_PROFILER_TYPE_NAME(StringImpl*)));
return header + 1;
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/dtoa/fast-dtoa.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698