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

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: Rebase after RVHM moved 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 0b1f7c6d9c38cfc5bed0dd6d1148eb84827c7220..70fdb5e01806e51953624ac74e1e75797928df4a 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -655,6 +655,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