Make sure browserWindow.destroy() doesn't leave zombie processes.

This commit is contained in:
Cheng Zhao 2013-12-04 22:00:20 +08:00
parent 687c9de5d7
commit e45f83e62a
3 changed files with 16 additions and 0 deletions

View file

@ -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(