Index: content/browser/frame_host/navigation_controller_impl_browsertest.cc |
diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
index 4594946033b61ab03c8ae56ce52954927d83dd72..9ed78c9ea5e021835854ed770fd4f6cf3165a28d 100644 |
--- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
+++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
@@ -484,10 +484,8 @@ bool NavigateToURLAndReplace(Shell* shell, const GURL& url) { |
WebContents* web_contents = shell->web_contents(); |
WaitForLoadStop(web_contents); |
TestNavigationObserver same_tab_observer(web_contents, 1); |
- NavigationController::LoadURLParams params(url); |
- params.should_replace_current_entry = true; |
- web_contents->GetController().LoadURLWithParams(params); |
- web_contents->Focus(); |
+ EXPECT_TRUE( |
+ ExecuteScript(shell, "window.location.replace('" + url.spec() + "');")); |
same_tab_observer.Wait(); |
if (!IsLastCommittedEntryOfPageType(web_contents, PAGE_TYPE_NORMAL)) |
return false; |