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

Unified Diff: third_party/WebKit/Source/platform/wtf/RefCounted.h

Issue 2872613002: Remove ENABLE(INSTANCE_COUNTER) code. (Closed)
Patch Set: gn Created 3 years, 7 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 | « third_party/WebKit/Source/platform/wtf/InstanceCounter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/wtf/RefCounted.h
diff --git a/third_party/WebKit/Source/platform/wtf/RefCounted.h b/third_party/WebKit/Source/platform/wtf/RefCounted.h
index 7150d9b455b81d9958e992e640c2908909f06f5a..78084693f529453b6e8aba93ac5011a69e3e19b7 100644
--- a/third_party/WebKit/Source/platform/wtf/RefCounted.h
+++ b/third_party/WebKit/Source/platform/wtf/RefCounted.h
@@ -26,10 +26,6 @@
#include "platform/wtf/Noncopyable.h"
#include "platform/wtf/WTFExport.h"
-#if ENABLE(INSTANCE_COUNTER)
-#include "platform/wtf/InstanceCounter.h"
-#endif
-
#if DCHECK_IS_ON()
#define CHECK_REF_COUNTED_LIFECYCLE 1
#include "platform/wtf/ThreadRestrictionVerifier.h"
@@ -155,13 +151,7 @@ class RefCounted : public RefCountedBase {
}
protected:
-#if ENABLE(INSTANCE_COUNTER)
- RefCounted() { incrementInstanceCount<T>(static_cast<T*>(this)); }
-
- ~RefCounted() { decrementInstanceCount<T>(static_cast<T*>(this)); }
-#else
RefCounted() {}
-#endif
};
// Allows subclasses to use the default copy constructor.
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/InstanceCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698