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

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

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 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/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 9f3361f47b5ea1de64ba187adec0d838d2c95300..f7706e96147e36d420bbafe745dcb8ca4fbc615b 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -1083,9 +1083,10 @@ 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,
- url::Origin(url));
+ BeginNavigationParams begin_params(
+ std::string(), net::LOAD_NORMAL, false, false,
+ REQUEST_CONTEXT_TYPE_LOCATION,
+ blink::WebMixedContentContextType::Blockable, url::Origin(url));
CommonNavigationParams common_params;
common_params.url = url;
std::unique_ptr<NavigationRequestInfo> request_info(
@@ -2641,9 +2642,11 @@ TEST_P(ResourceDispatcherHostTest, CancelRequestsForContext) {
if (IsBrowserSideNavigationEnabled()) {
// Create a NavigationRequest.
TestNavigationURLLoaderDelegate delegate;
- BeginNavigationParams begin_params(std::string(), net::LOAD_NORMAL, false,
- false, REQUEST_CONTEXT_TYPE_LOCATION,
- url::Origin(download_url));
+ BeginNavigationParams begin_params(
+ std::string(), net::LOAD_NORMAL, false, false,
+ REQUEST_CONTEXT_TYPE_LOCATION,
+ blink::WebMixedContentContextType::Blockable,
+ url::Origin(download_url));
CommonNavigationParams common_params;
common_params.url = download_url;
std::unique_ptr<NavigationRequestInfo> request_info(

Powered by Google App Engine
This is Rietveld 408576698