fix: check for shared memory handle validity before closing, remove DebugDumpData call (#15402)
This commit is contained in:
parent
41e86efda0
commit
bdda248194
2 changed files with 3 additions and 2 deletions
|
@ -106,7 +106,9 @@ bool PrintWebViewHelper::PrintPagesNative(blink::WebLocalFrame* frame,
|
|||
printed_page_params.content_area = content_area_in_dpi[i];
|
||||
Send(new PrintHostMsg_DidPrintPage(routing_id(), printed_page_params));
|
||||
// Send the rest of the pages with an invalid metafile handle.
|
||||
printed_page_params.metafile_data_handle.Close();
|
||||
if (printed_page_params.metafile_data_handle.IsValid()) {
|
||||
printed_page_params.metafile_data_handle.Close();
|
||||
}
|
||||
printed_page_params.metafile_data_handle = base::SharedMemoryHandle();
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue