Index: device/bluetooth/bluetooth_profile.cc |
diff --git a/device/bluetooth/bluetooth_profile.cc b/device/bluetooth/bluetooth_profile.cc |
index 5cf421c3d276a1c9eea976d83e2788e865547c02..3454eb27c0f0133e7612819f65beaa5cbc597d85 100644 |
--- a/device/bluetooth/bluetooth_profile.cc |
+++ b/device/bluetooth/bluetooth_profile.cc |
@@ -5,7 +5,11 @@ |
#include "device/bluetooth/bluetooth_profile.h" |
#if defined(OS_CHROMEOS) |
+#include "base/sequenced_task_runner.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "device/bluetooth/bluetooth_profile_chromeos.h" |
+#include "device/bluetooth/bluetooth_socket_thread.h" |
#elif defined(OS_MACOSX) |
#include "base/mac/mac_util.h" |
#elif defined(OS_WIN) |
@@ -49,7 +53,9 @@ void BluetoothProfile::Register(const BluetoothUUID& uuid, |
const ProfileCallback& callback) { |
#if defined(OS_CHROMEOS) |
chromeos::BluetoothProfileChromeOS* profile = NULL; |
- profile = new chromeos::BluetoothProfileChromeOS(); |
+ profile = new chromeos::BluetoothProfileChromeOS( |
+ base::ThreadTaskRunnerHandle::Get(), |
+ device::BluetoothSocketThread::Get()); |
profile->Init(uuid, options, callback); |
#elif defined(OS_MACOSX) |
BluetoothProfile* profile = NULL; |