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

Unified Diff: Source/platform/weborigin/SecurityPolicy.h

Issue 1117513003: Initializes SecurityPolicy static locals during blink initialization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | « Source/core/Init.cpp ('k') | Source/platform/weborigin/SecurityPolicy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/SecurityPolicy.h
diff --git a/Source/platform/weborigin/SecurityPolicy.h b/Source/platform/weborigin/SecurityPolicy.h
index 53e3bc1049398f825b4830c6e03b1d9ef26b0fef..78eda16bae04b9da52687b3c0c2792e85e4fc34e 100644
--- a/Source/platform/weborigin/SecurityPolicy.h
+++ b/Source/platform/weborigin/SecurityPolicy.h
@@ -41,6 +41,10 @@ class SecurityOrigin;
class PLATFORM_EXPORT SecurityPolicy {
public:
+ // This must be called during initialization (before we create
+ // other threads).
+ static void init();
+
// True if the referrer should be omitted according to the
// ReferrerPolicyNoReferrerWhenDowngrade. If you intend to send a
// referrer header, you should use generateReferrer instead.
« no previous file with comments | « Source/core/Init.cpp ('k') | Source/platform/weborigin/SecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698