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

Unified Diff: content/child/shared_memory_data_consumer_handle.cc

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: content/child/shared_memory_data_consumer_handle.cc
diff --git a/content/child/shared_memory_data_consumer_handle.cc b/content/child/shared_memory_data_consumer_handle.cc
index 0d22f772d0e1b35fa3edcd2d6b44a403acbc32e0..3c9b7a26ff8e65e81374fbc3a9524c8323ac5d96 100644
--- a/content/child/shared_memory_data_consumer_handle.cc
+++ b/content/child/shared_memory_data_consumer_handle.cc
@@ -473,13 +473,8 @@ SharedMemoryDataConsumerHandle::~SharedMemoryDataConsumerHandle() {
}
std::unique_ptr<blink::WebDataConsumerHandle::Reader>
-SharedMemoryDataConsumerHandle::ObtainReader(Client* client) {
- return base::WrapUnique(obtainReaderInternal(client));
-}
-
-SharedMemoryDataConsumerHandle::ReaderImpl*
-SharedMemoryDataConsumerHandle::obtainReaderInternal(Client* client) {
- return new ReaderImpl(context_, client);
+SharedMemoryDataConsumerHandle::obtainReader(Client* client) {
+ return base::WrapUnique(new ReaderImpl(context_, client));
}
const char* SharedMemoryDataConsumerHandle::debugName() const {
« no previous file with comments | « content/child/shared_memory_data_consumer_handle.h ('k') | content/child/shared_memory_data_consumer_handle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698