Index: content/test/web_contents_observer_sanity_checker.cc |
diff --git a/content/test/web_contents_observer_sanity_checker.cc b/content/test/web_contents_observer_sanity_checker.cc |
index 11e8674cc902626c49c2fb8fe24a2d2f33d60640..a816ce2bc39a65aa0916bdc237ed88867ef563e8 100644 |
--- a/content/test/web_contents_observer_sanity_checker.cc |
+++ b/content/test/web_contents_observer_sanity_checker.cc |
@@ -5,6 +5,7 @@ |
#include "content/test/web_contents_observer_sanity_checker.h" |
#include "base/strings/stringprintf.h" |
+#include "content/browser/frame_host/render_frame_host_impl.h" |
#include "content/common/frame_messages.h" |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_process_host.h" |
@@ -42,6 +43,10 @@ void WebContentsObserverSanityChecker::RenderFrameCreated( |
CHECK(false) << "RenderFrameCreated called more than once for routing pair:" |
<< Format(render_frame_host); |
} |
+ |
+ CHECK(render_frame_host->GetProcess()->HasConnection()); |
ncarter (slow)
2015/06/05 21:47:50
<< "RenderFrameCreated was called for a RenderFram
lfg
2015/06/05 22:07:07
Done.
|
+ CHECK(static_cast<RenderFrameHostImpl*>(render_frame_host) |
+ ->IsRenderFrameLive()); |
ncarter (slow)
2015/06/05 21:47:50
<< "RenderFrameCreated called on for a RenderFrame
lfg
2015/06/05 22:07:07
Done.
|
} |
void WebContentsObserverSanityChecker::RenderFrameDeleted( |