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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 50223002: Prevent modal dialogs when preparing to swap out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 9f8c806f176b45b7cbcc18cef84471d6f52547d8..8f879c40ed9c435dd1acdd18c68b6bb5d9be392e 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -425,6 +425,10 @@ void RenderViewHostImpl::FirePageBeforeUnload(bool for_cross_site_transition) {
}
}
+void RenderViewHostImpl::SuppressDialogsUntilSwapOut() {
+ Send(new ViewMsg_SuppressDialogsUntilSwapOut(GetRoutingID()));
+}
+
void RenderViewHostImpl::SwapOut() {
// This will be set back to false in OnSwapOutACK, just before we replace
// this RVH with the pending RVH.

Powered by Google App Engine
This is Rietveld 408576698