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

Unified Diff: content/common/url_schemes.cc

Issue 2679383003: Share schemes needed for CSP between the browser and the renderer. (Closed)
Patch Set: Rebase and fix conflict. Created 3 years, 10 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
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | content/public/common/content_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/url_schemes.cc
diff --git a/content/common/url_schemes.cc b/content/common/url_schemes.cc
index f9bdbf814afbd4897edb2f62e33c9124cbfa04bc..e2a9a2edad91c48c94a73bc4311089cc66c1e327 100644
--- a/content/common/url_schemes.cc
+++ b/content/common/url_schemes.cc
@@ -65,6 +65,9 @@ void RegisterContentSchemes(bool lock_schemes) {
for (auto& scheme : schemes.cors_enabled_schemes)
url::AddCORSEnabledScheme(scheme.c_str());
+ for (auto& scheme : schemes.csp_bypassing_schemes)
+ url::AddCSPBypassingScheme(scheme.c_str());
+
// Prevent future modification of the scheme lists. This is to prevent
// accidental creation of data races in the program. Add*Scheme aren't
// threadsafe so must be called when GURL isn't used on any other thread. This
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698