Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: device/bluetooth/bluetooth_profile.cc

Issue 267633003: Reimplement BluetoothSocketChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Got windows compiling, ship it Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_device_win_unittest.cc ('k') | device/bluetooth/bluetooth_profile_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « device/bluetooth/bluetooth_device_win_unittest.cc ('k') | device/bluetooth/bluetooth_profile_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698