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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerTee.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/fetch/DataConsumerTee.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp b/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp
index 8b335d42f85c5b98c7573833af61f6d1e61c465a..30f5d0d5dc2f39a761d45b03def3414ed41d0a85 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp
@@ -108,7 +108,7 @@ private:
class DestinationTracker final : public ThreadSafeRefCounted<DestinationTracker> {
public:
- static PassRefPtr<DestinationTracker> create(PassRefPtr<TeeRootObject> root) { return adoptRef(new DestinationTracker(root)); }
+ static PassRefPtr<DestinationTracker> create(PassRefPtr<TeeRootObject> root) { return adoptRef(new DestinationTracker(std::move(root))); }
~DestinationTracker()
{
m_root->stop();
@@ -126,7 +126,7 @@ public:
public:
static PassRefPtr<Proxy> create(PassRefPtr<DestinationContext> context, PassRefPtr<DestinationTracker> tracker)
{
- return adoptRef(new Proxy(context, tracker));
+ return adoptRef(new Proxy(std::move(context), std::move(tracker)));
}
~Proxy()
{
@@ -314,7 +314,7 @@ class DestinationHandle final : public WebDataConsumerHandle {
public:
static std::unique_ptr<WebDataConsumerHandle> create(PassRefPtr<DestinationContext::Proxy> contextProxy)
{
- return wrapUnique(new DestinationHandle(contextProxy));
+ return wrapUnique(new DestinationHandle(std::move(contextProxy)));
}
std::unique_ptr<Reader> obtainReader(Client* client)

Powered by Google App Engine
This is Rietveld 408576698