diff options
Diffstat (limited to 'chromium/extensions/browser/api/bluetooth_socket')
-rw-r--r-- | chromium/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc b/chromium/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc index c8df92dfbcf..48b796db4ef 100644 --- a/chromium/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc +++ b/chromium/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc @@ -351,8 +351,8 @@ void BluetoothSocketEventDispatcher::PostEvent(const SocketParams& params, std::unique_ptr<Event> event) { DCHECK_CURRENTLY_ON(params.thread_id); - base::PostTask(FROM_HERE, {BrowserThread::UI}, - base::BindOnce(&DispatchEvent, params.browser_context_id, + content::GetUIThreadTaskRunner({})->PostTask( + FROM_HERE, base::BindOnce(&DispatchEvent, params.browser_context_id, params.extension_id, std::move(event))); } |