Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc |
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
index c054e14237f3bd4deb49711f065f1f75587801cc..d8f0b29a68316fc8afa228e2bc001249a3015f63 100644 |
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
@@ -66,6 +66,14 @@ void BluetoothDispatcherHost::set_adapter( |
void BluetoothDispatcherHost::OnRequestDevice(int thread_id, int request_id) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ BrowserThread::PostTask(BrowserThread::UI, |
+ FROM_HERE, |
+ base::Bind(&BluetoothDispatcherHost::OnRequestDeviceUI, |
+ this, thread_id, request_id)); |
+} |
+ |
+void BluetoothDispatcherHost::OnRequestDeviceUI(int thread_id, int request_id) { |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
// TODO(scheib) Extend this very simple mock implementation by using |
// device/bluetooth/test mock adapter and related classes. |
switch (bluetooth_mock_data_set_) { |