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

Unified Diff: extensions/shell/browser/shell_app_window.cc

Issue 514463002: app_shell: Allow getUserMedia to select a capture device by id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: extensions/shell/browser/shell_app_window.cc
diff --git a/extensions/shell/browser/shell_app_window.cc b/extensions/shell/browser/shell_app_window.cc
index 238f058b56e1a5be3bc8e70da99d6bcd03a3bc2b..165dd5ce9a8ffab02f69004b54dfe116b9bbad03 100644
--- a/extensions/shell/browser/shell_app_window.cc
+++ b/extensions/shell/browser/shell_app_window.cc
@@ -65,8 +65,8 @@ void ShellAppWindow::RequestMediaAccessPermission(
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) {
- // Allow access to the first microphone and/or camera.
- media_capture_util::GrantMediaStreamRequestWithFirstDevice(
+ // Allow access to the microphone and/or camera.
+ media_capture_util::GrantMediaStreamRequest(
web_contents, request, callback, extension_);
}
« no previous file with comments | « extensions/shell/browser/media_capture_util.cc ('k') | extensions/shell/browser/shell_extension_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698