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

Issue 391009: Don't do work in the SharedIOBuffer constructor; use an Init method instead. ... (Closed)

Created:
11 years, 1 month ago by hawk
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, John Grabowski, jam, pam+watch_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Don't do work in the SharedIOBuffer constructor; use an Init method instead. This eliminates instances of allocated-but-invalid SharedIOBuffers. Also clean up some CHECKs and TODOs associated with the bug. The upshot is that we no longer crash in AsyncResourceHandler::OnResponseCompleted() when we can't allocate shared memory. We now crash (properly, I believe) in the renderer process if the shared memory that failed to allocate was the TransportDIB, since the renderer can't communicate with the browser without it. BUG=16371 TEST=none

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M base/shared_memory_posix.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/async_resource_handler.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hawk
11 years, 1 month ago (2009-11-13 21:08:44 UTC) #1
willchan no longer on Chromium
How does this affect the Linux case when the users have incorrect permissions set on ...
11 years, 1 month ago (2009-11-17 17:13:06 UTC) #2
hawk
On 2009/11/17 17:13:06, willchan wrote: > How does this affect the Linux case when the ...
11 years, 1 month ago (2009-11-18 22:36:25 UTC) #3
willchan no longer on Chromium
11 years, 1 month ago (2009-11-19 17:22:58 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698