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

Unified Diff: third_party/WebKit/Source/modules/vr/NavigatorVR.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/modules/vr/NavigatorVR.cpp
diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
index a076fa5a003582cec64e1ae6b5230c459e563d32..1dfdcf8aa6251872048450abc7616396932df9e9 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -61,8 +61,7 @@ ScriptPromise NavigatorVR::getVRDisplays(ScriptState* scriptState) {
UseCounter::count(*document, UseCounter::VRGetDisplays);
ExecutionContext* executionContext = scriptState->getExecutionContext();
- String errorMessage;
- if (!executionContext->isSecureContext(errorMessage))
+ if (!executionContext->isSecureContext())
UseCounter::count(*document, UseCounter::VRGetDisplaysInsecureOrigin);
Platform::current()->recordRapporURL("VR.WebVR.GetDisplays", document->url());
« no previous file with comments | « third_party/WebKit/Source/modules/notifications/Notification.cpp ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698