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

Unified Diff: content/browser/loader/navigation_url_loader_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: Addressed comments Created 4 years, 6 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 0de7dd15d5756dca1c244bb1a1376ff77dd34b57..950babffbeb0ad2bbbbbff11ca3b785d91fae2cf 100644
--- a/content/browser/loader/navigation_url_loader_unittest.cc
+++ b/content/browser/loader/navigation_url_loader_unittest.cc
@@ -105,12 +105,13 @@ class NavigationURLLoaderTest : public testing::Test {
const GURL& url,
NavigationURLLoaderDelegate* 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, -1));
+ new NavigationRequestInfo(common_params, begin_params, url, true, false,
+ -1));
return NavigationURLLoader::Create(
browser_context_.get(), std::move(request_info), nullptr, delegate);

Powered by Google App Engine
This is Rietveld 408576698