Index: content/browser/frame_host/navigation_handle_impl_unittest.cc |
diff --git a/content/browser/frame_host/navigation_handle_impl_unittest.cc b/content/browser/frame_host/navigation_handle_impl_unittest.cc |
index 4ab1f177e77bfe12c1dd80773927d55dd5c88104..fc78314c663dea77f9b6eafc7041ccf649173033 100644 |
--- a/content/browser/frame_host/navigation_handle_impl_unittest.cc |
+++ b/content/browser/frame_host/navigation_handle_impl_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "content/public/browser/ssl_status.h" |
#include "content/public/common/request_context_type.h" |
#include "content/test/test_render_frame_host.h" |
+#include "content/test/test_web_contents.h" |
namespace content { |
@@ -71,6 +72,7 @@ class NavigationHandleImplTest : public RenderViewHostImplTestHarness { |
base::TimeTicks::Now(), 0, false); |
EXPECT_EQ(REQUEST_CONTEXT_TYPE_UNSPECIFIED, |
test_handle_->request_context_type_); |
+ contents()->GetMainFrame()->InitializeRenderFrameIfNeeded(); |
} |
void TearDown() override { |