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

Unified Diff: Source/core/timing/MemoryInfo.h

Issue 950343002: Decouple memory() from Console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-up Created 5 years, 10 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
« Source/core/timing/ConsoleMemory.h ('K') | « Source/core/timing/ConsoleMemory.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/MemoryInfo.h
diff --git a/Source/core/timing/MemoryInfo.h b/Source/core/timing/MemoryInfo.h
index b5f793d9036687dde86c61135bae07978af93088..c401ce47ac5af091cea2209c42310d3f1c0829fa 100644
--- a/Source/core/timing/MemoryInfo.h
+++ b/Source/core/timing/MemoryInfo.h
@@ -41,11 +41,9 @@ namespace blink {
class MemoryInfo final : public RefCountedWillBeGarbageCollected<MemoryInfo>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MemoryInfo);
public:
- static PassRefPtrWillBeRawPtr<MemoryInfo> create()
- {
- return adoptRefWillBeNoop(new MemoryInfo());
- }
+ static MemoryInfo* create() { return new MemoryInfo(); }
kouhei (in TOK) 2015/02/24 14:50:57 I think we should continue to use PassRefPtrWillBe
size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; }
size_t usedJSHeapSize() const { return m_info.usedJSHeapSize; }
« Source/core/timing/ConsoleMemory.h ('K') | « Source/core/timing/ConsoleMemory.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698