Emit WindowCloseCancelled message when close is cancelled by user code.
This commit is contained in:
parent
adacc2bcf9
commit
411e1a3685
1 changed files with 3 additions and 1 deletions
|
@ -151,8 +151,10 @@ void NativeWindow::CloseWebContents() {
|
|||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||
observers_,
|
||||
WillCloseWindow(&prevent_default));
|
||||
if (prevent_default)
|
||||
if (prevent_default) {
|
||||
WindowList::WindowCloseCancelled(this);
|
||||
return;
|
||||
}
|
||||
|
||||
content::WebContents* web_contents(GetWebContents());
|
||||
|
||||
|
|
Loading…
Reference in a new issue