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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp

Issue 2308343002: Replaced PassRefPtr copites with moves in Source/modules. (Closed)
Patch Set: 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/modules/serviceworkers/ServiceWorkerThread.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
index 15ff064293306fedca99e7774fbe48f5041d1e77..a13c269296a2a960a8896ae32617ae04fa5e8d53 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
@@ -40,11 +40,11 @@ namespace blink {
std::unique_ptr<ServiceWorkerThread> ServiceWorkerThread::create(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
{
- return wrapUnique(new ServiceWorkerThread(workerLoaderProxy, workerReportingProxy));
+ return wrapUnique(new ServiceWorkerThread(std::move(workerLoaderProxy), workerReportingProxy));
}
ServiceWorkerThread::ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
- : WorkerThread(workerLoaderProxy, workerReportingProxy)
+ : WorkerThread(std::move(workerLoaderProxy), workerReportingProxy)
, m_workerBackingThread(WorkerBackingThread::create("ServiceWorker Thread"))
{
}

Powered by Google App Engine
This is Rietveld 408576698