Make sure browserWindow.destroy() doesn't leave zombie processes.
This commit is contained in:
parent
687c9de5d7
commit
e45f83e62a
3 changed files with 16 additions and 0 deletions
|
@ -199,6 +199,10 @@ bool NativeWindow::SetIcon(const std::string& str_path) {
|
|||
return true;
|
||||
}
|
||||
|
||||
base::ProcessHandle NativeWindow::GetRenderProcessHandle() {
|
||||
return GetWebContents()->GetRenderProcessHost()->GetHandle();
|
||||
}
|
||||
|
||||
void NativeWindow::CapturePage(const gfx::Rect& rect,
|
||||
const CapturePageCallback& callback) {
|
||||
GetWebContents()->GetRenderViewHost()->CopyFromBackingStore(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue