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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp

Issue 2172183003: Return unique_ptr<WebDataConsumerHandle::Reader> directly from obtainReader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmock_cxx11
Patch Set: rebase Created 4 years, 5 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/core/loader/DocumentThreadableLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
index 275bfccb77427118a4b48e3aae8991e01c38b6db..ff39381267a7782827829431a53b43ba753b8c95 100644
--- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
@@ -89,9 +89,9 @@ private:
WeakPtrFactory<EmptyDataReader> m_factory;
};
- Reader* obtainReaderInternal(Client* client) override
+ std::unique_ptr<Reader> obtainReader(Client* client) override
{
- return new EmptyDataReader(client);
+ return WTF::wrapUnique(new EmptyDataReader(client));
}
const char* debugName() const override { return "EmptyDataHandle"; }
};
« no previous file with comments | « content/child/web_data_consumer_handle_impl_unittest.cc ('k') | third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698