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

Unified Diff: chrome/browser/background/background_contents.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: switch fullscreen call Created 4 years, 4 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/background/background_contents.cc
diff --git a/chrome/browser/background/background_contents.cc b/chrome/browser/background/background_contents.cc
index 20e949071f3165423d75595544100d0e352a991a..077a9535e761ab59d5d6b378f812af21ad60939b 100644
--- a/chrome/browser/background/background_contents.cc
+++ b/chrome/browser/background/background_contents.cc
@@ -123,7 +123,8 @@ void BackgroundContents::CloseContents(WebContents* source) {
delete this;
}
-bool BackgroundContents::ShouldSuppressDialogs(WebContents* source) {
+bool BackgroundContents::ShouldSuppressDialogs(WebContents* source,
+ bool before_unload) {
return true;
}
« no previous file with comments | « chrome/browser/background/background_contents.h ('k') | chrome/browser/extensions/api/tab_capture/offscreen_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698