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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.cpp

Issue 1504403003: Calling isSecureContext() with no arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored isSecureContext() Created 5 years 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: third_party/WebKit/Source/core/dom/ExecutionContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
index 78b0e2a3b99064926cfe839ef07a49b3ea7713df..0a6d9c782285dbaeda3c3305bf06ca36918d356e 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
@@ -264,6 +264,12 @@ bool ExecutionContext::isWindowInteractionAllowed() const
return m_windowInteractionTokens > 0;
}
+bool ExecutionContext::isSecureContext(const SecureContextCheck privilegeContextCheck) const
+{
+ String unusedErrorMessage;
+ return isSecureContext(unusedErrorMessage, privilegeContextCheck);
+}
+
void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy)
{
// When a referrer policy has already been set, the latest value takes precedence.

Powered by Google App Engine
This is Rietveld 408576698