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

Unified Diff: Source/core/timing/ConsoleMemory.cpp

Issue 1230203003: Don't cache MemoryInfo instance on ConsoleMemory object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update corresponding console.memory layout test Created 5 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/timing/ConsoleMemory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/ConsoleMemory.cpp
diff --git a/Source/core/timing/ConsoleMemory.cpp b/Source/core/timing/ConsoleMemory.cpp
index a44ff10768fc91eeadd6e65aae0bcfb7bc4f3b05..bd1bdf74812d211979bee990d4872c5dfb07ac2c 100644
--- a/Source/core/timing/ConsoleMemory.cpp
+++ b/Source/core/timing/ConsoleMemory.cpp
@@ -10,12 +10,6 @@
namespace blink {
-DEFINE_TRACE(ConsoleMemory)
-{
- visitor->trace(m_memory);
- HeapSupplement<Console>::trace(visitor);
-}
-
// static
ConsoleMemory& ConsoleMemory::from(Console& console)
{
@@ -35,10 +29,7 @@ MemoryInfo* ConsoleMemory::memory(Console& console)
MemoryInfo* ConsoleMemory::memory()
{
- if (!m_memory)
- m_memory = MemoryInfo::create();
-
- return m_memory.get();
+ return MemoryInfo::create();
}
} // namespace blink
« no previous file with comments | « Source/core/timing/ConsoleMemory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698