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

Unified Diff: content/browser/loader/navigation_url_loader_unittest.cc

Issue 872473003: PlzNavigate: Remove the RequestNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/browser/loader/navigation_url_loader_unittest.cc
diff --git a/content/browser/loader/navigation_url_loader_unittest.cc b/content/browser/loader/navigation_url_loader_unittest.cc
index 097035ca2199d9cadef0a04a1ed0958ef990a02e..7871c1665b8c503355e33877c1c6693aa1be4b7a 100644
--- a/content/browser/loader/navigation_url_loader_unittest.cc
+++ b/content/browser/loader/navigation_url_loader_unittest.cc
@@ -170,18 +170,17 @@ class NavigationURLLoaderTest : public testing::Test {
scoped_ptr<NavigationURLLoader> MakeTestLoader(
const GURL& url,
NavigationURLLoaderDelegate* delegate) {
- FrameHostMsg_BeginNavigation_Params begin_params;
+ BeginNavigationParams begin_params;
CommonNavigationParams common_params;
begin_params.method = "GET";
common_params.url = url;
scoped_ptr<NavigationRequestInfo> request_info(
- new NavigationRequestInfo(begin_params));
- request_info->first_party_for_cookies = url;
- request_info->is_main_frame = true;
+ new NavigationRequestInfo(begin_params, url, true, false,
+ scoped_refptr<ResourceRequestBody>()));
return NavigationURLLoader::Create(
- browser_context_.get(), 0,
- common_params, request_info.Pass(), nullptr, delegate);
+ browser_context_.get(), 0, common_params, request_info.Pass(),
+ delegate);
}
// Helper function for fetching the body of a URL to a string.

Powered by Google App Engine
This is Rietveld 408576698