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

Unified Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.h

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. Created 4 years, 8 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/platform/WebThreadSupportingGC.h
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
index 32ea91a4ae037f8cfa9aceaf2c9839bf73a5d257..883e9d6db75af30d32a55aeebd3d8ca0c1791641 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
@@ -35,22 +35,22 @@ public:
void postTask(const WebTraceLocation& location, PassOwnPtr<SameThreadClosure> task)
{
- m_thread->getWebTaskRunner()->postTask(location, task);
+ m_thread->getWebTaskRunner()->postTask(location, std::move(task));
}
void postDelayedTask(const WebTraceLocation& location, PassOwnPtr<SameThreadClosure> task, long long delayMs)
{
- m_thread->getWebTaskRunner()->postDelayedTask(location, task, delayMs);
+ m_thread->getWebTaskRunner()->postDelayedTask(location, std::move(task), delayMs);
}
void postTask(const WebTraceLocation& location, PassOwnPtr<CrossThreadClosure> task)
{
- m_thread->getWebTaskRunner()->postTask(location, task);
+ m_thread->getWebTaskRunner()->postTask(location, std::move(task));
}
void postDelayedTask(const WebTraceLocation& location, PassOwnPtr<CrossThreadClosure> task, long long delayMs)
{
- m_thread->getWebTaskRunner()->postDelayedTask(location, task, delayMs);
+ m_thread->getWebTaskRunner()->postDelayedTask(location, std::move(task), delayMs);
}
bool isCurrentThread() const
« no previous file with comments | « third_party/WebKit/Source/platform/TraceEvent.h ('k') | third_party/WebKit/Source/platform/audio/AudioBus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698