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

Unified Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 2696443002: Reland of Use spec-compliant algorithm to select video devices in getUserMedia. (Closed)
Patch Set: Address boliu's comments Created 3 years, 10 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: content/renderer/media/media_stream_dispatcher.cc
diff --git a/content/renderer/media/media_stream_dispatcher.cc b/content/renderer/media/media_stream_dispatcher.cc
index 36a5b19fe7168ad353b5cecea3d1952bdbf8aa39..077c27cd980276ba447da112d64fdd5dc9f3dc01 100644
--- a/content/renderer/media/media_stream_dispatcher.cc
+++ b/content/renderer/media/media_stream_dispatcher.cc
@@ -11,7 +11,6 @@
#include "content/renderer/media/media_stream_dispatcher_eventhandler.h"
#include "content/renderer/render_thread_impl.h"
#include "media/base/audio_parameters.h"
-#include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
#include "url/origin.h"
namespace content {
@@ -74,14 +73,15 @@ void MediaStreamDispatcher::GenerateStream(
int request_id,
const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler,
const StreamControls& controls,
- const url::Origin& security_origin) {
+ const url::Origin& security_origin,
+ bool is_processing_user_gesture) {
DCHECK(thread_checker_.CalledOnValidThread());
DVLOG(1) << "MediaStreamDispatcher::GenerateStream(" << request_id << ")";
requests_.push_back(Request(event_handler, request_id, next_ipc_id_));
- Send(new MediaStreamHostMsg_GenerateStream(
- routing_id(), next_ipc_id_++, controls, security_origin,
- blink::WebUserGestureIndicator::isProcessingUserGesture()));
+ Send(new MediaStreamHostMsg_GenerateStream(routing_id(), next_ipc_id_++,
+ controls, security_origin,
+ is_processing_user_gesture));
}
void MediaStreamDispatcher::CancelGenerateStream(
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.h ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698