Index: content/test/test_render_frame_host.h |
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h |
index 8ec230085e1cff67b56e6ef2fda25648c7c86359..8a35b0ee0fc67ededd3c2dfd6931aec1c49facc2 100644 |
--- a/content/test/test_render_frame_host.h |
+++ b/content/test/test_render_frame_host.h |
@@ -135,6 +135,10 @@ class TestRenderFrameHost : public RenderFrameHostImpl, |
void set_pending_commit(bool pending) { pending_commit_ = pending; } |
bool pending_commit() const { return pending_commit_; } |
+ // Simulates the renderer informing the browser that the frame has an |
+ // onbeforeunload handler. |
+ void set_has_beforeunload_handlers() { has_beforeunload_handlers_ = true; } |
+ |
// Creates a WebBluetooth Service with a dummy InterfaceRequest. |
WebBluetoothServiceImpl* CreateWebBluetoothServiceForTesting(); |