Index: content/public/test/navigation_simulator.cc |
diff --git a/content/public/test/navigation_simulator.cc b/content/public/test/navigation_simulator.cc |
index 81b1afa8d2fd50b4f7b6922829b8f72b3eef6c5f..015dd4c22a673d7b4951607bed6ff9059c485dfa 100644 |
--- a/content/public/test/navigation_simulator.cc |
+++ b/content/public/test/navigation_simulator.cc |
@@ -354,8 +354,8 @@ void NavigationSimulator::Fail(int error_code) { |
} |
if (IsBrowserSideNavigationEnabled()) { |
- CHECK_EQ(1, num_ready_to_commit_called_); |
if (should_result_in_error_page) { |
+ CHECK_EQ(1, num_ready_to_commit_called_); |
// Update the RenderFrameHost now that we know which RenderFrameHost will |
// commit the error page. |
render_frame_host_ = |
@@ -560,4 +560,9 @@ void NavigationSimulator::PrepareCompleteCallbackOnHandle() { |
weak_factory_.GetWeakPtr())); |
} |
+RenderFrameHost* NavigationSimulator::GetFinalRenderFrameHost() { |
+ CHECK_EQ(state_, FINISHED); |
+ return render_frame_host_; |
+} |
+ |
} // namespace content |