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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 789643005: PlzNavigate: make content unit tests work with browser side navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cancel-navigations
Patch Set: Now addressing failures due to speculative RFH Created 5 years, 11 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 5b891f5487de5e086e1618da88c14d677e59a059..9462007e24aa7c71fbe22b47bd893022b68e5c79 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4021,7 +4021,7 @@ void WebContentsImpl::RendererUnresponsive(RenderViewHost* render_view_host) {
if (DevToolsAgentHost::IsDebuggerAttached(this))
return;
- if (rfhi->is_waiting_for_beforeunload_ack() ||
+ if (rfhi->IsWaitingForBeforeUnloadACK() ||
rfhi->IsWaitingForUnloadACK()) {
// Hang occurred while firing the beforeunload/unload handler.
// Pretend the handler fired so tab closing continues as if it had.
@@ -4037,7 +4037,7 @@ void WebContentsImpl::RendererUnresponsive(RenderViewHost* render_view_host) {
// close. Otherwise, pretend the unload listeners have all fired and close
// the tab.
bool close = true;
- if (rfhi->is_waiting_for_beforeunload_ack() && delegate_) {
+ if (rfhi->IsWaitingForBeforeUnloadACK() && delegate_) {
delegate_->BeforeUnloadFired(this, true, &close);
}
if (close)

Powered by Google App Engine
This is Rietveld 408576698