Index: chrome/browser/renderer_host/browser_render_process_host.cc |
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc |
index 9be8769cd223a2102cd5937ae539858254434bf3..829ef479354359335721f4be44b5bd89435a616e 100644 |
--- a/chrome/browser/renderer_host/browser_render_process_host.cc |
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc |
@@ -483,9 +483,12 @@ void BrowserRenderProcessHost::InitExtensions() { |
void BrowserRenderProcessHost::SendUserScriptsUpdate( |
base::SharedMemory *shared_memory) { |
base::SharedMemoryHandle handle_for_process; |
- bool r = shared_memory->ShareToProcess(GetRendererProcessHandle(), |
- &handle_for_process); |
- DCHECK(r); |
+ if (!shared_memory->ShareToProcess(GetRendererProcessHandle(), |
+ &handle_for_process)) { |
+ // This can legitimately fail if the renderer asserts at startup. |
+ return; |
+ } |
+ |
if (base::SharedMemory::IsHandleValid(handle_for_process)) { |
channel_->Send(new ViewMsg_UserScripts_UpdatedScripts(handle_for_process)); |
} |