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

Unified Diff: Source/core/dom/MainThreadTaskRunner.cpp

Issue 1320563003: Oilpan: avoid using WeakPtr<> for heap residing objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert unrelated unit test addition Created 5 years, 4 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 | « no previous file | Source/core/html/FormAssociatedElement.h » ('j') | Source/modules/cachestorage/Cache.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MainThreadTaskRunner.cpp
diff --git a/Source/core/dom/MainThreadTaskRunner.cpp b/Source/core/dom/MainThreadTaskRunner.cpp
index 339332f5050456d486acedd6de1ea58f7448043e..58b45ab0306a35c4fc0da010a74589f8ef4887aa 100644
--- a/Source/core/dom/MainThreadTaskRunner.cpp
+++ b/Source/core/dom/MainThreadTaskRunner.cpp
@@ -48,11 +48,7 @@ public:
void run() override;
private:
-#if ENABLE(OILPAN)
- CrossThreadWeakPersistent<MainThreadTaskRunner> m_runner;
-#else
- WeakPtr<MainThreadTaskRunner> m_runner;
-#endif
+ WeakPtrWillBeCrossThreadWeakPersistent<MainThreadTaskRunner> m_runner;
OwnPtr<ExecutionContextTask> m_task;
bool m_isInspectorTask;
};
« no previous file with comments | « no previous file | Source/core/html/FormAssociatedElement.h » ('j') | Source/modules/cachestorage/Cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698