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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp
diff --git a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp
index 90d6a7f8c33b8931a6fe410dad89387e40990e42..1713f8bec3494e3743e291c013c6ee5db37effa7 100644
--- a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp
+++ b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp
@@ -37,7 +37,7 @@ namespace blink {
class MainThreadTask : public WebTaskRunner::Task {
WTF_MAKE_NONCOPYABLE(MainThreadTask); USING_FAST_MALLOC(MainThreadTask);
public:
- MainThreadTask(WeakPtrWillBeRawPtr<MainThreadTaskRunner> runner, PassOwnPtr<ExecutionContextTask> task, bool isInspectorTask)
+ MainThreadTask(RawPtr<MainThreadTaskRunner> runner, PassOwnPtr<ExecutionContextTask> task, bool isInspectorTask)
: m_runner(runner)
, m_task(task)
, m_isInspectorTask(isInspectorTask)
@@ -47,7 +47,7 @@ public:
void run() override;
private:
- WeakPtrWillBeCrossThreadWeakPersistent<MainThreadTaskRunner> m_runner;
+ CrossThreadWeakPersistent<MainThreadTaskRunner> m_runner;
OwnPtr<ExecutionContextTask> m_task;
bool m_isInspectorTask;
};
@@ -137,7 +137,7 @@ void MainThreadTaskRunner::pendingTasksTimerFired(Timer<MainThreadTaskRunner>*)
}
}
-WeakPtrWillBeRawPtr<MainThreadTaskRunner> MainThreadTaskRunner::createWeakPointerToSelf()
+RawPtr<MainThreadTaskRunner> MainThreadTaskRunner::createWeakPointerToSelf()
{
#if ENABLE(OILPAN)
return this;

Powered by Google App Engine
This is Rietveld 408576698