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

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

Issue 2432883002: Replaced PassRefPtr copies with moves in unit tests. (Closed)
Patch Set: Created 4 years, 2 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 84961c41b81db4ec3c451e95d2c5e38ea6081149..fa37bec858f28a191976be89a4df51ee989d2a95 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
@@ -211,7 +211,7 @@ class DataConsumerHandleTestUtil {
static std::unique_ptr<WebDataConsumerHandle> create(
const String& name,
PassRefPtr<Context> context) {
- return wrapUnique(new DataConsumerHandle(name, context));
+ return wrapUnique(new DataConsumerHandle(name, std::move(context)));
}
private:

Powered by Google App Engine
This is Rietveld 408576698