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

Unified Diff: components/navigation_interception/intercept_navigation_throttle_unittest.cc

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 2 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
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(

Powered by Google App Engine
This is Rietveld 408576698