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

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

Issue 2099243002: PlzNavigate: properly set the initiator of the navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 1 month 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/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index 1d4435b0419b32557f1bf795a97c952286f133f1..2a013355c720e53ff81f20e4e350925c01b2729f 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -1070,13 +1070,13 @@ class ResourceDispatcherHostTest : public testing::TestWithParam<TestConfig>,
// Make a navigation request.
TestNavigationURLLoaderDelegate delegate;
BeginNavigationParams begin_params(std::string(), net::LOAD_NORMAL, false,
- false, REQUEST_CONTEXT_TYPE_LOCATION);
+ false, REQUEST_CONTEXT_TYPE_LOCATION,
+ url::Origin(url));
CommonNavigationParams common_params;
common_params.url = url;
std::unique_ptr<NavigationRequestInfo> request_info(
- new NavigationRequestInfo(common_params, begin_params, url,
- url::Origin(url), true, false, false, -1,
- false, false));
+ new NavigationRequestInfo(common_params, begin_params, url, true,
+ false, false, -1, false, false));
std::unique_ptr<NavigationURLLoader> test_loader =
NavigationURLLoader::Create(browser_context_.get(),
std::move(request_info), nullptr, nullptr,
@@ -2559,13 +2559,13 @@ TEST_P(ResourceDispatcherHostTest, CancelRequestsForContext) {
// Create a NavigationRequest.
TestNavigationURLLoaderDelegate delegate;
BeginNavigationParams begin_params(std::string(), net::LOAD_NORMAL, false,
- false, REQUEST_CONTEXT_TYPE_LOCATION);
+ false, REQUEST_CONTEXT_TYPE_LOCATION,
+ url::Origin(download_url));
CommonNavigationParams common_params;
common_params.url = download_url;
std::unique_ptr<NavigationRequestInfo> request_info(
new NavigationRequestInfo(common_params, begin_params, download_url,
- url::Origin(download_url), true, false, false,
- -1, false, false));
+ true, false, false, -1, false, false));
std::unique_ptr<NavigationURLLoader> loader = NavigationURLLoader::Create(
browser_context_.get(), std::move(request_info), nullptr, nullptr,
&delegate);

Powered by Google App Engine
This is Rietveld 408576698