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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h

Issue 2870543002: Removed PassRefPtr to RefPtr copies from unit tests. (Closed)
Patch Set: Created 3 years, 7 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/DataConsumerHandleTestUtil.h
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
index 3fd5bb3a0dc384fd114b4b449e653e27821c4f61..4fa3532a3f9969e27203b61e0d09e1e720efed1d 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
@@ -187,7 +187,7 @@ class DataConsumerHandleTestUtil {
public:
ReaderImpl(const String& name, PassRefPtr<Context> context)
- : name_(name.IsolatedCopy()), context_(context) {
+ : name_(name.IsolatedCopy()), context_(std::move(context)) {
context_->RecordAttach(name_.IsolatedCopy());
}
~ReaderImpl() override { context_->RecordDetach(name_.IsolatedCopy()); }
@@ -218,7 +218,7 @@ class DataConsumerHandleTestUtil {
private:
DataConsumerHandle(const String& name, PassRefPtr<Context> context)
- : name_(name.IsolatedCopy()), context_(context) {}
+ : name_(name.IsolatedCopy()), context_(std::move(context)) {}
std::unique_ptr<Reader> ObtainReader(Client*) {
return WTF::MakeUnique<ReaderImpl>(name_, context_);

Powered by Google App Engine
This is Rietveld 408576698