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

Unified Diff: content/public/browser/render_frame_host.h

Issue 2787393003: Fix races in tests waiting for beforeunload dialogs. (Closed)
Patch Set: rev Created 3 years, 8 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/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index f7d7cb1303ef94bfd5222098383cf75c99742a40..7e2e5ffebd8dbea53becce46c5d3c7f9a72f914e 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -245,6 +245,7 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// in tests that need to observe beforeunload dialogs, which could fail if the
// timeout skips the dialog.
virtual void DisableBeforeUnloadHangMonitorForTesting() = 0;
+ virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0;
private:
// This interface should only be implemented inside content.

Powered by Google App Engine
This is Rietveld 408576698