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

Unified Diff: Source/core/inspector/InspectorTimelineAgent.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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 | « Source/core/html/parser/HTMLTreeBuilder.cpp ('k') | Source/core/page/Page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTimelineAgent.cpp
diff --git a/Source/core/inspector/InspectorTimelineAgent.cpp b/Source/core/inspector/InspectorTimelineAgent.cpp
index ab2fa3c972dab28a8001532d6e4be3b6806b4c39..8f679c9e045b00cda82207c619ab278ff588cdc0 100644
--- a/Source/core/inspector/InspectorTimelineAgent.cpp
+++ b/Source/core/inspector/InspectorTimelineAgent.cpp
@@ -163,7 +163,7 @@ private:
Entry(PassRefPtr<TimelineEvent> record, const String& type)
: record(record)
, children(TypeBuilder::Array<TimelineEvent>::create())
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, type(type)
#endif
{
@@ -171,7 +171,7 @@ private:
RefPtr<TimelineEvent> record;
RefPtr<TypeBuilder::Array<TimelineEvent> > children;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
String type;
#endif
};
@@ -184,7 +184,7 @@ public:
void closeScopedRecord(double endTime);
void addInstantRecord(PassRefPtr<TimelineEvent> record);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool isOpenRecordOfType(const String& type);
#endif
@@ -1304,7 +1304,7 @@ void TimelineRecordStack::addInstantRecord(PassRefPtr<TimelineEvent> record)
m_stack.last().children->addItem(record);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool TimelineRecordStack::isOpenRecordOfType(const String& type)
{
return !m_stack.isEmpty() && m_stack.last().type == type;
« no previous file with comments | « Source/core/html/parser/HTMLTreeBuilder.cpp ('k') | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698