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

Unified Diff: third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp

Issue 1373773003: Implement 'window.isSecureContext'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: document. Created 5 years, 3 months 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/mediastream/UserMediaRequest.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp b/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp
index ba8e286b76ac60320740e2b7f3cfa30847e09f8e..49b6a29a2a5bee8ad09968ea26566616b109245f 100644
--- a/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp
@@ -117,11 +117,11 @@ WebMediaConstraints UserMediaRequest::videoConstraints() const
return m_video;
}
-bool UserMediaRequest::isPrivilegedContextUse(String& errorMessage)
+bool UserMediaRequest::isSecureContextUse(String& errorMessage)
{
Document* document = ownerDocument();
- if (document->isPrivilegedContext(errorMessage)) {
+ if (document->isSecureContext(errorMessage)) {
UseCounter::count(document->frame(), UseCounter::GetUserMediaSecureOrigin);
OriginsUsingFeatures::countAnyWorld(*document, OriginsUsingFeatures::Feature::GetUserMediaSecureOrigin);
return true;

Powered by Google App Engine
This is Rietveld 408576698