| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index dab977c681456a56a9619729ec8bb6fbe5123e59..c34446a6080d9429cf9bb8d766cf88494190cd95 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -837,6 +837,13 @@ void Browser::UpdateDownloadShelfVisibility(bool visible) {
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| // static
|
| +bool Browser::ShouldRunUnloadEventsHelper(content::WebContents* contents) {
|
| + if (IsFastTabUnloadEnabled())
|
| + return chrome::FastUnloadController::ShouldRunUnloadEventsHelper(contents);
|
| + return chrome::UnloadController::ShouldRunUnloadEventsHelper(contents);
|
| +}
|
| +
|
| +// static
|
| bool Browser::RunUnloadEventsHelper(WebContents* contents) {
|
| if (IsFastTabUnloadEnabled())
|
| return chrome::FastUnloadController::RunUnloadEventsHelper(contents);
|
| @@ -1435,6 +1442,10 @@ gfx::Rect Browser::GetRootWindowResizerRect() const {
|
| void Browser::BeforeUnloadFired(WebContents* web_contents,
|
| bool proceed,
|
| bool* proceed_to_fire_unload) {
|
| + if (is_devtools() && DevToolsWindow::HandleBeforeUnload(web_contents,
|
| + proceed, proceed_to_fire_unload))
|
| + return;
|
| +
|
| if (IsFastTabUnloadEnabled()) {
|
| *proceed_to_fire_unload =
|
| fast_unload_controller_->BeforeUnloadFired(web_contents, proceed);
|
|
|