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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 1ca5219ebaa85e9d19b136c06af6dd2579dc9c84..337391fb716da346b063e599e487a699d6e56cec 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -496,7 +496,7 @@ class WebSuspendableTaskWrapper: public SuspendableTask {
public:
static PassOwnPtr<WebSuspendableTaskWrapper> create(PassOwnPtr<WebSuspendableTask> task)
{
- return adoptPtr(new WebSuspendableTaskWrapper(task));
+ return adoptPtr(new WebSuspendableTaskWrapper(std::move(task)));
}
void run() override
@@ -511,7 +511,7 @@ public:
private:
explicit WebSuspendableTaskWrapper(PassOwnPtr<WebSuspendableTask> task)
- : m_task(task)
+ : m_task(std::move(task))
{
}

Powered by Google App Engine
This is Rietveld 408576698