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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.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/frame/DOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
index d48031ce4df847e4ffdb4dba9c8a4e9ed7380bc1..aa405c657fe32af5e043557344e73ae5311b2726 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
@@ -163,8 +163,7 @@ bool DOMWindow::isSecureContext() const
if (!frame())
return false;
- String unusedErrorMessage;
- return document()->isSecureContext(unusedErrorMessage, ExecutionContext::StandardSecureContextCheck);
+ return document()->ExecutionContext::isSecureContext(ExecutionContext::StandardSecureContextCheck);
estark 2015/12/18 00:00:58 same here
}
void DOMWindow::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, const String& targetOrigin, LocalDOMWindow* source, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698