Allowing destroying a closed window

This commit is contained in:
Cheng Zhao 2015-06-25 13:08:11 +08:00
parent afa9f30aac
commit eb370ba22a
2 changed files with 5 additions and 1 deletions

View file

@ -498,6 +498,9 @@ void NativeWindow::RenderViewCreated(
}
void NativeWindow::CloseContents(content::WebContents* source) {
if (!inspectable_web_contents_)
return;
inspectable_web_contents_->GetView()->SetDelegate(nullptr);
inspectable_web_contents_ = nullptr;