| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 95e708d8fa7770fd27508d842b610099a66fdb67..e551474c1f4a013ad58727d970562d26dc0931b3 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -689,6 +689,20 @@ bool Browser::IsAttemptingToCloseBrowser() const {
|
| return unload_controller_->is_attempting_to_close_browser();
|
| }
|
|
|
| +bool Browser::ShouldRunUnloadListenerBeforeClosing(
|
| + content::WebContents* web_contents) {
|
| + if (IsFastTabUnloadEnabled())
|
| + return fast_unload_controller_->ShouldRunUnloadEventsHelper(web_contents);
|
| + return unload_controller_->ShouldRunUnloadEventsHelper(web_contents);
|
| +}
|
| +
|
| +bool Browser::RunUnloadListenerBeforeClosing(
|
| + content::WebContents* web_contents) {
|
| + if (IsFastTabUnloadEnabled())
|
| + return fast_unload_controller_->RunUnloadEventsHelper(web_contents);
|
| + return unload_controller_->RunUnloadEventsHelper(web_contents);
|
| +}
|
| +
|
| void Browser::OnWindowClosing() {
|
| if (!ShouldCloseWindow())
|
| return;
|
|
|