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

Unified Diff: content/public/test/navigation_simulator.cc

Issue 2691423006: Introduce the ThrottleManager (Closed)
Patch Set: engedy review Created 3 years, 9 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
« no previous file with comments | « content/public/test/navigation_simulator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/public/test/navigation_simulator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698