Make sure window is closed before WebContents is destroyed.

Otherwise we would get "RawChannel fatal error".
This commit is contained in:
Cheng Zhao 2014-07-28 17:34:21 +08:00
parent 143bde007a
commit ec4275ca13
3 changed files with 2 additions and 7 deletions

View file

@ -137,6 +137,7 @@ void NativeWindowViews::Close() {
void NativeWindowViews::CloseImmediately() {
window_->CloseNow();
window_.reset();
}
void NativeWindowViews::Move(const gfx::Rect& bounds) {