Index: content/test/test_web_contents.cc |
diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc |
index d2c7243c9faff83c1a5949b564253d6d9aa7ea9b..d712e5ff8ff85bc3a4c1e113feaf015d6e6e7dfb 100644 |
--- a/content/test/test_web_contents.cc |
+++ b/content/test/test_web_contents.cc |
@@ -189,29 +189,7 @@ |
} |
void TestWebContents::TestSetIsLoading(bool value) { |
- if (value) |
- DidStartLoading(GetMainFrame()->frame_tree_node(), true); |
- else { |
- for (FrameTreeNode* node : frame_tree_.Nodes()) { |
- RenderFrameHostImpl* current_frame_host = |
- node->render_manager()->current_frame_host(); |
- DCHECK(current_frame_host); |
- current_frame_host->ResetLoadingState(); |
- |
- RenderFrameHostImpl* pending_frame_host = |
- node->render_manager()->pending_frame_host(); |
- |
- if (IsBrowserSideNavigationEnabled()) { |
- RenderFrameHostImpl* speculative_frame_host = |
- node->render_manager()->speculative_frame_host(); |
- if (speculative_frame_host) |
- speculative_frame_host->ResetLoadingState(); |
- } else { |
- if (pending_frame_host) |
- pending_frame_host->ResetLoadingState(); |
- } |
- } |
- } |
+ SetIsLoading(value, true, nullptr); |
} |
void TestWebContents::CommitPendingNavigation() { |