Index: components/navigation_interception/intercept_navigation_throttle_unittest.cc |
diff --git a/components/navigation_interception/intercept_navigation_throttle_unittest.cc b/components/navigation_interception/intercept_navigation_throttle_unittest.cc |
index 15e05efaf0473a80b1a2f26901181eea33793908..04d923c2d5c64c1692be3475ff4d650016abde6a 100644 |
--- a/components/navigation_interception/intercept_navigation_throttle_unittest.cc |
+++ b/components/navigation_interception/intercept_navigation_throttle_unittest.cc |
@@ -60,7 +60,7 @@ class InterceptNavigationThrottleTest |
SimulateWillStart(const GURL& url, const GURL& sanitized_url, bool is_post) { |
scoped_ptr<content::NavigationHandle> test_handle = |
content::NavigationHandle::CreateNavigationHandleForTesting( |
- url, true, web_contents()); |
+ url, true, main_rfh()); |
test_handle->RegisterThrottleForTesting( |
scoped_ptr<NavigationThrottle>( |
new InterceptNavigationThrottle( |
@@ -76,7 +76,7 @@ class InterceptNavigationThrottleTest |
NavigationThrottle::ThrottleCheckResult Simulate302() { |
scoped_ptr<content::NavigationHandle> test_handle = |
content::NavigationHandle::CreateNavigationHandleForTesting( |
- GURL(kTestUrl), true, web_contents()); |
+ GURL(kTestUrl), true, main_rfh()); |
test_handle->RegisterThrottleForTesting( |
scoped_ptr<NavigationThrottle>( |
new InterceptNavigationThrottle( |