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

Unified Diff: content/browser/media/media_devices_monitor.cc

Issue 57913002: Refactor how the DeviceMonitor is started. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/media_devices_monitor.cc
diff --git a/content/browser/media/media_devices_monitor.cc b/content/browser/media/media_devices_monitor.cc
index c34bd5030a44ceb0f38633c9a745eb4cf827a12b..9f2c18353f186d31b28010fd2ee40e498fa90336 100644
--- a/content/browser/media/media_devices_monitor.cc
+++ b/content/browser/media/media_devices_monitor.cc
@@ -12,10 +12,7 @@ namespace content {
namespace {
void EnsureMonitorCaptureDevicesInternal(
MediaStreamManager* media_stream_manager) {
- // TODO(perkj): The argument list suggests that this is the wrong design. Can
- // we add a separate method for device monitoring?
- media_stream_manager->EnumerateDevices(
- NULL, -1, -1, NULL, -1, MEDIA_DEVICE_AUDIO_CAPTURE, GURL());
+ media_stream_manager->EnsureDeviceMonitorStarted();
}
}
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698