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

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: Fixed nits 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 64c7bcd165938bfad9afbd011523b4796d4ecfbf..672f0bded42b6afb2ad2cc49d3af4c9c2017a733 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4032,7 +4032,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.
@@ -4048,7 +4048,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