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

Unified Diff: public/platform/WebPrivatePtr.h

Issue 863113004: Make WebThreadedDataReceiver wrap a Blink-managed object instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix msvc compilation Created 5 years, 11 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: public/platform/WebPrivatePtr.h
diff --git a/public/platform/WebPrivatePtr.h b/public/platform/WebPrivatePtr.h
index 07b84db35c5dccc9f6e46def38fbe1f358cb8d75..0c9b7aaadf60357baf9bf01283a52b1b5298e2cb 100644
--- a/public/platform/WebPrivatePtr.h
+++ b/public/platform/WebPrivatePtr.h
@@ -50,7 +50,7 @@ enum LifetimeManagementType {
template<typename T>
class LifetimeOf {
- static const bool isGarbageCollected = WTF::IsSubclassOfTemplate<T, GarbageCollected>::value;
+ static const bool isGarbageCollected = WTF::IsSubclassOfTemplate<T, GarbageCollected>::value || WTF::IsSubclass<T, GarbageCollectedMixin>::value;
static const bool isRefCountedGarbageCollected = WTF::IsSubclassOfTemplate<T, RefCountedGarbageCollected>::value;
public:
static const LifetimeManagementType value =

Powered by Google App Engine
This is Rietveld 408576698