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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp

Issue 1504403003: Calling isSecureContext() with no arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/workers/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index d5776efe28175ffc7047b5f08ffbfa35a2271953..326a7f47349911681c8b833a25317e02946033d9 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -384,6 +384,12 @@ bool WorkerGlobalScope::isSecureContext(String& errorMessage, const SecureContex
return securityOrigin()->isPotentiallyTrustworthy(errorMessage);
}
+bool WorkerGlobalScope::isSecureContext(const SecureContextCheck privilegeContextCheck) const
+{
+ String unusedErrorMessage;
+ return isSecureContext(unusedErrorMessage, privilegeContextCheck);
+}
+
void WorkerGlobalScope::removeURLFromMemoryCache(const KURL& url)
{
m_thread->workerLoaderProxy()->postTaskToLoader(createCrossThreadTask(&WorkerGlobalScope::removeURLFromMemoryCacheInternal, url));

Powered by Google App Engine
This is Rietveld 408576698