| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 40354c26444ca7b998fac5c2e1bb71c497fcbe9f..ada9d5e17b2ef1ca595dbfa58ecb0a210859e1b5 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -690,6 +690,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;
|
|
|