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

Unified Diff: content/shell/browser/layout_test/layout_test_content_browser_client.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/shell/browser/layout_test/layout_test_content_browser_client.cc
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
index 3b25ecdfb4454d3c340439efcc88621c22bcd668..b4c51a637df67e1f28299a1cccb76d8169f60555 100644
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
@@ -133,4 +133,18 @@ LayoutTestContentBrowserClient::GetPlatformNotificationService() {
return layout_test_notification_manager_.get();
}
+bool LayoutTestContentBrowserClient::ShouldAllowRunningInsecureContent(
+ bool allowed_per_settings,
+ const url::Origin& origin,
+ const GURL& resource_url,
+ content::WebContents* web_contents) {
+ const base::DictionaryValue& test_flags =
+ BlinkTestController::Get()
+ ->accumulated_layout_test_runtime_flags_changes();
+ bool allow_running = false;
+ test_flags.GetBoolean("running_insecure_content_allowed", &allow_running);
+
+ return allowed_per_settings || allow_running;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698