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

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

Issue 2949103006: Removed RefPtr::Release. (Closed)
Patch Set: Removed Release from mac specific code Created 3 years, 6 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/FormDataBytesConsumer.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
index 64f687e30a18af322f9a330676ff91e92a71352c..9222b2dbc64fe582bde2c5c054734316d7eecbf2 100644
--- a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
@@ -75,7 +75,7 @@ class SimpleFormDataBytesConsumer : public BytesConsumer {
return nullptr;
state_ = PublicState::kClosed;
- return form_data_.Release();
+ return std::move(form_data_);
}
void SetClient(BytesConsumer::Client* client) override { DCHECK(client); }
void ClearClient() override {}
@@ -183,7 +183,7 @@ class ComplexFormDataBytesConsumer final : public BytesConsumer {
if (!form_data_)
return nullptr;
blob_bytes_consumer_->Cancel();
- return form_data_.Release();
+ return std::move(form_data_);
}
void SetClient(BytesConsumer::Client* client) override {
blob_bytes_consumer_->SetClient(client);

Powered by Google App Engine
This is Rietveld 408576698