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

Unified Diff: content/test/test_render_frame_host.cc

Issue 2696493003: Introduce SubframeNavigationFilteringThrottle (Closed)
Patch Set: fix use after stack return, make code nicer Created 3 years, 10 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: content/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index 6558a129032199dc9ab0101ae138eb3b566d3fea..53173e94525bd3208f0cbbbda20c6313d07eeb37 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -133,8 +133,9 @@ void TestRenderFrameHost::SimulateRedirect(const GURL& new_url) {
return;
}
- navigation_handle()->CallWillRedirectRequestForTesting(new_url, false, GURL(),
- false);
+ navigation_handle()->CallWillRedirectRequestForTesting(
+ new_url, false, GURL(), false,
+ content::NavigationHandle::ThrottleChecksFinishedCallback());
}
void TestRenderFrameHost::SimulateNavigationCommit(const GURL& url) {
@@ -521,7 +522,8 @@ void TestRenderFrameHost::SimulateWillStartRequest(
return;
navigation_handle()->CallWillStartRequestForTesting(
false /* is_post */, Referrer(GURL(), blink::WebReferrerPolicyDefault),
- true /* user_gesture */, transition, false /* is_external_protocol */);
+ true /* user_gesture */, transition, false /* is_external_protocol */,
+ content::NavigationHandle::ThrottleChecksFinishedCallback());
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698