By moving the call to Load() up in SearchProvider::Start(), we are giving a chance...
[chromium-blink-merge.git] / content / browser / media_devices_monitor.cc
blob56df97c393abec3ffc9c3b79f8225a20c45abeee
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/public/browser/media_devices_monitor.h"
7 #include "content/browser/browser_main_loop.h"
8 #include "content/browser/renderer_host/media/media_stream_manager.h"
9 #include "content/public/browser/browser_thread.h"
11 namespace content {
13 void EnsureMonitorCaptureDevices() {
14 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
15 // Post a EnumerateDevices() API to MSM to start the monitoring.
16 BrowserMainLoop::GetMediaStreamManager()->EnumerateDevices(
17 NULL, -1, -1, MEDIA_DEVICE_AUDIO_CAPTURE, GURL());
20 } // namespace content