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

Unified Diff: Source/WebCore/inspector/MemoryInstrumentationImpl.cpp

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/WebCore/inspector/MemoryInstrumentationImpl.cpp
diff --git a/Source/WebCore/inspector/MemoryInstrumentationImpl.cpp b/Source/WebCore/inspector/MemoryInstrumentationImpl.cpp
index b659c1db763fcf8e0bc19b2c29ca4ad8ffdf47c6..1337a8eb6766fef1cd99a3a39b4aa84b59fe5f7b 100644
--- a/Source/WebCore/inspector/MemoryInstrumentationImpl.cpp
+++ b/Source/WebCore/inspector/MemoryInstrumentationImpl.cpp
@@ -30,7 +30,6 @@
#include "config.h"
-#if ENABLE(INSPECTOR)
#include "MemoryInstrumentationImpl.h"
@@ -87,10 +86,6 @@ bool MemoryInstrumentationClientImpl::checkCountedObject(const void* object)
if (!m_allocatedObjects.contains(object)) {
++m_totalObjectsNotInAllocatedSet;
return false;
-#if 0
- printf("Found unknown object referenced by pointer: %p\n", object);
- WTFReportBacktrace();
-#endif
}
return true;
}
@@ -159,4 +154,3 @@ void MemoryInstrumentationImpl::reportMemoryUsage(MemoryObjectInfo* memoryObject
} // namespace WebCore
-#endif // ENABLE(INSPECTOR)

Powered by Google App Engine
This is Rietveld 408576698