| Index: content/browser/frame_host/navigation_controller_impl_unittest.cc
|
| diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc
|
| index 847bbeb53d3bd3f78784558c0a2d33b0cb17b266..03d9d065af5be512cef1d6473a5d8c03d9274009 100644
|
| --- a/content/browser/frame_host/navigation_controller_impl_unittest.cc
|
| +++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc
|
| @@ -220,8 +220,10 @@
|
| bool HasNavigationRequest() {
|
| if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnableBrowserSideNavigation)) {
|
| - return contents()->GetFrameTree()->root()->navigation_request() !=
|
| - nullptr;
|
| + FrameTreeNode* root = contents()->GetFrameTree()->root();
|
| + NavigationRequest* navigation_request = static_cast<NavigatorImpl*>(
|
| + root->navigator())->GetNavigationRequestForNodeForTesting(root);
|
| + return navigation_request != nullptr;
|
| }
|
| return process()->sink().GetFirstMessageMatching(FrameMsg_Navigate::ID)
|
| != nullptr;
|
| @@ -230,8 +232,9 @@
|
| const GURL GetLastNavigationURL() {
|
| if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnableBrowserSideNavigation)) {
|
| - NavigationRequest* navigation_request =
|
| - contents()->GetFrameTree()->root()->navigation_request();
|
| + FrameTreeNode* root = contents()->GetFrameTree()->root();
|
| + NavigationRequest* navigation_request = static_cast<NavigatorImpl*>(
|
| + root->navigator())->GetNavigationRequestForNodeForTesting(root);
|
| CHECK(navigation_request);
|
| return navigation_request->common_params().url;
|
| }
|
|
|