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

Unified Diff: content/child/child_shared_bitmap_manager.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
Index: content/child/child_shared_bitmap_manager.cc
diff --git a/content/child/child_shared_bitmap_manager.cc b/content/child/child_shared_bitmap_manager.cc
index 00b461c7e96baad1d89e7d8717ff523cdaf132b4..a4267a7ddbc537dc2b7489c949fa27fdb951ef8b 100644
--- a/content/child/child_shared_bitmap_manager.cc
+++ b/content/child/child_shared_bitmap_manager.cc
@@ -122,8 +122,7 @@ ChildSharedBitmapManager::AllocateSharedMemoryBitmap(const gfx::Size& size) {
CollectMemoryUsageAndDie(size, memory_size);
#else
bool out_of_memory;
- memory = ChildThreadImpl::AllocateSharedMemory(memory_size, sender_.get(),
- &out_of_memory);
+ memory = ChildThreadImpl::AllocateSharedMemory(memory_size, &out_of_memory);
if (!memory) {
if (out_of_memory) {
CollectMemoryUsageAndDie(size, memory_size);

Powered by Google App Engine
This is Rietveld 408576698