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

Unified Diff: third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 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/workers/SharedWorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
index a80450ea0110cb956b7adc9ea0b9bc43a8024880..081c66850049bcf75b34653b170ab872c95263f8 100644
--- a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
@@ -40,11 +40,11 @@ namespace blink {
std::unique_ptr<SharedWorkerThread> SharedWorkerThread::create(const String& name, PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
{
- return wrapUnique(new SharedWorkerThread(name, workerLoaderProxy, workerReportingProxy));
+ return wrapUnique(new SharedWorkerThread(name, std::move(workerLoaderProxy), workerReportingProxy));
}
SharedWorkerThread::SharedWorkerThread(const String& name, PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
- : WorkerThread(workerLoaderProxy, workerReportingProxy)
+ : WorkerThread(std::move(workerLoaderProxy), workerReportingProxy)
, m_workerBackingThread(WorkerBackingThread::create("SharedWorker Thread"))
, m_name(name.isolatedCopy())
{

Powered by Google App Engine
This is Rietveld 408576698