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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp

Issue 1983783002: Remove OwnPtr::release() calls in modules/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/DataConsumerTee.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp b/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp
index 14aae5aaea75d27fc7d872688970917725027fc3..71f3deb798201e6ae325fdaeef45a0880540b6e9 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerTee.cpp
@@ -150,7 +150,7 @@ public:
needsNotification = m_queue.isEmpty();
OwnPtr<Vector<char>> data = adoptPtr(new Vector<char>);
data->append(buffer, size);
- m_queue.append(data.release());
+ m_queue.append(std::move(data));
}
if (needsNotification)
notify();
@@ -425,8 +425,8 @@ void DataConsumerTee::create(ExecutionContext* executionContext, PassOwnPtr<Fetc
OwnPtr<WebDataConsumerHandle> webDest1, webDest2;
DataConsumerTee::create(executionContext, static_cast<PassOwnPtr<WebDataConsumerHandle>>(std::move(src)), &webDest1, &webDest2);
- *dest1 = createFetchDataConsumerHandleFromWebHandle(webDest1.release());
- *dest2 = createFetchDataConsumerHandleFromWebHandle(webDest2.release());
+ *dest1 = createFetchDataConsumerHandleFromWebHandle(std::move(webDest1));
+ *dest2 = createFetchDataConsumerHandleFromWebHandle(std::move(webDest2));
return;
}

Powered by Google App Engine
This is Rietveld 408576698