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

Unified Diff: content/child/blob_storage/webblobregistry_impl.cc

Issue 2544953002: content: Some code cleanup related to shared memory allocation. (Closed)
Patch Set: . Created 4 years 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
« no previous file with comments | « no previous file | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blob_storage/webblobregistry_impl.cc
diff --git a/content/child/blob_storage/webblobregistry_impl.cc b/content/child/blob_storage/webblobregistry_impl.cc
index b564fd45a15123234b0a52c5c147fe9772b6af4a..a1ef5bec59a67a9dac487332357d30ed32c6d922 100644
--- a/content/child/blob_storage/webblobregistry_impl.cc
+++ b/content/child/blob_storage/webblobregistry_impl.cc
@@ -148,8 +148,7 @@ void WebBlobRegistryImpl::addDataToStream(const WebURL& url,
size_t shared_memory_size =
std::min(length, limits_.max_shared_memory_size);
std::unique_ptr<base::SharedMemory> shared_memory(
- ChildThreadImpl::AllocateSharedMemory(shared_memory_size,
- sender_.get(), nullptr));
+ ChildThreadImpl::AllocateSharedMemory(shared_memory_size));
CHECK(shared_memory.get());
if (!shared_memory->Map(shared_memory_size))
CHECK(false);
« no previous file with comments | « no previous file | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698