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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 2567173002: Clean up Document::isSecureContext (Closed)
Patch Set: Created 4 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/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index 78d64db8292d6e5eafae1f76a50bb42706997f4a..26f088f28b54f3237bcfe5ef412fc80c929e0bd1 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -79,14 +79,9 @@ WebSecurityOrigin WebDocument::getSecurityOrigin() const {
return WebSecurityOrigin(constUnwrap<Document>()->getSecurityOrigin());
}
-bool WebDocument::isSecureContext(WebString& errorMessage) const {
+bool WebDocument::isSecureContext() const {
const Document* document = constUnwrap<Document>();
- if (!document)
- return false;
- String message;
- bool result = document->isSecureContext(message);
- errorMessage = message;
- return result;
+ return document && document->isSecureContext();
}
WebString WebDocument::encoding() const {
« no previous file with comments | « third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp ('k') | third_party/WebKit/public/web/WebDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698