Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3250)

Unified Diff: chrome/browser/ui/fast_unload_controller.cc

Issue 2194243002: Suppress JavaScript dialogs when a tab puts itself into fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content:: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/fast_unload_controller.cc
diff --git a/chrome/browser/ui/fast_unload_controller.cc b/chrome/browser/ui/fast_unload_controller.cc
index f0577567cf6954b3b9301a5314ab721e5a3b683d..94b0ce3004f518e9a6bc0cfa62c24a9944a87249 100644
--- a/chrome/browser/ui/fast_unload_controller.cc
+++ b/chrome/browser/ui/fast_unload_controller.cc
@@ -36,7 +36,8 @@ class FastUnloadController::DetachedWebContentsDelegate
private:
// WebContentsDelegate implementation.
- bool ShouldSuppressDialogs(content::WebContents* source) override {
+ bool ShouldSuppressDialogs(content::WebContents* source,
+ bool before_unload) override {
return true; // Return true so dialogs are suppressed.
}

Powered by Google App Engine
This is Rietveld 408576698