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

Unified Diff: Source/modules/mediastream/MediaDevices.cpp

Issue 1307663003: Update getUserMedia counts to count Promise API and secure origin use (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add actual counting of GetUserMedia.Secure Created 5 years, 4 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
« no previous file with comments | « Source/core/frame/OriginsUsingFeatures.cpp ('k') | Source/modules/mediastream/NavigatorMediaStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/MediaDevices.cpp
diff --git a/Source/modules/mediastream/MediaDevices.cpp b/Source/modules/mediastream/MediaDevices.cpp
index 9134a60650c23745560950275af62bb8920f331b..1d6b51be6e986a1145fc1f98e0277e59406ec7d0 100644
--- a/Source/modules/mediastream/MediaDevices.cpp
+++ b/Source/modules/mediastream/MediaDevices.cpp
@@ -106,7 +106,7 @@ ScriptPromise MediaDevices::getUserMedia(ScriptState* scriptState, const MediaSt
}
String errorMessage;
- if (!document->isPrivilegedContext(errorMessage)) {
+ if (!request->isPrivilegedContextUse(errorMessage)) {
return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, errorMessage));
}
« no previous file with comments | « Source/core/frame/OriginsUsingFeatures.cpp ('k') | Source/modules/mediastream/NavigatorMediaStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698