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

Unified Diff: Source/WebCore/page/MemoryInfo.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: comments addressed 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
« no previous file with comments | « Source/WebCore/page/FrameView.cpp ('k') | Source/WebCore/page/Page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/MemoryInfo.cpp
diff --git a/Source/WebCore/page/MemoryInfo.cpp b/Source/WebCore/page/MemoryInfo.cpp
index 836ec3328fa77cb8bd978ba6ba88307ff6b14f77..ba79f5d4a709876244572110c36179146664e0e2 100644
--- a/Source/WebCore/page/MemoryInfo.cpp
+++ b/Source/WebCore/page/MemoryInfo.cpp
@@ -40,7 +40,6 @@
namespace WebCore {
-#if ENABLE(INSPECTOR)
class HeapSizeCache {
WTF_MAKE_NONCOPYABLE(HeapSizeCache); WTF_MAKE_FAST_ALLOCATED;
@@ -132,21 +131,18 @@ size_t quantizeMemorySize(size_t size)
return bucketSizeList[numberOfBuckets - 1];
}
-#endif
MemoryInfo::MemoryInfo(Frame* frame)
{
if (!frame || !frame->settings())
return;
-#if ENABLE(INSPECTOR)
if (frame->settings()->memoryInfoEnabled())
ScriptGCEvent::getHeapSize(m_info);
else if (true || frame->settings()->quantizedMemoryInfoEnabled()) {
DEFINE_STATIC_LOCAL(HeapSizeCache, heapSizeCache, ());
heapSizeCache.getCachedHeapSize(m_info);
}
-#endif
}
} // namespace WebCore
« no previous file with comments | « Source/WebCore/page/FrameView.cpp ('k') | Source/WebCore/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698