File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
#include " base/strings/utf_string_conversions.h"
19
19
#include " brightray/browser/browser_context.h"
20
20
#include " brightray/browser/devtools_manager_delegate.h"
21
+ #include " brightray/browser/media/media_capture_devices_dispatcher.h"
21
22
#include " brightray/browser/web_ui_controller_factory.h"
22
23
#include " brightray/common/application_info.h"
23
24
#include " brightray/common/main_delegate.h"
@@ -268,6 +269,9 @@ int BrowserMainParts::PreCreateThreads() {
268
269
#endif
269
270
#endif
270
271
272
+ // Force MediaCaptureDevicesDispatcher to be created on UI thread.
273
+ MediaCaptureDevicesDispatcher::GetInstance ();
274
+
271
275
if (!views::LayoutProvider::Get ())
272
276
layout_provider_.reset (new views::LayoutProvider ());
273
277
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ MediaCaptureDevicesDispatcher::MediaCaptureDevicesDispatcher()
44
44
: is_device_enumeration_disabled_(false ) {
45
45
// MediaCaptureDevicesDispatcher is a singleton. It should be created on
46
46
// UI thread.
47
- // FIXME: Ensure the DCHECK doesn't fail and then re-enable
48
- // DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
47
+ DCHECK (BrowserThread::CurrentlyOn (BrowserThread::UI));
49
48
}
50
49
51
50
MediaCaptureDevicesDispatcher::~MediaCaptureDevicesDispatcher () {}
You can’t perform that action at this time.
0 commit comments