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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_win.cc

Issue 2891853003: Rename TaskRunner::RunsTasksOnCurrentThread() in //device, //services (Closed)
Patch Set: fixed build error Created 3 years, 7 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_remote_gatt_descriptor_win.cc ('k') | device/bluetooth/bluetooth_socket_net.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_remote_gatt_service_win.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_win.cc b/device/bluetooth/bluetooth_remote_gatt_service_win.cc
index 5394abe425460fa88bccb897a13265179e058dc4..82d701a572f1f3f907593a20eb7f0d1740a50680 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_win.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_service_win.cc
@@ -33,7 +33,7 @@ BluetoothRemoteGattServiceWin::BluetoothRemoteGattServiceWin(
discovery_complete_notified_(false),
included_characteristics_discovered_(false),
weak_ptr_factory_(this) {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
DCHECK(!service_path_.empty());
DCHECK(service_uuid_.IsValid());
DCHECK(service_attribute_handle_);
@@ -51,7 +51,7 @@ BluetoothRemoteGattServiceWin::BluetoothRemoteGattServiceWin(
}
BluetoothRemoteGattServiceWin::~BluetoothRemoteGattServiceWin() {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
ClearIncludedCharacteristics();
@@ -101,7 +101,7 @@ BluetoothRemoteGattServiceWin::GetCharacteristic(
void BluetoothRemoteGattServiceWin::GattCharacteristicDiscoveryComplete(
BluetoothRemoteGattCharacteristicWin* characteristic) {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
DCHECK(included_characteristics_.find(characteristic->GetIdentifier()) !=
included_characteristics_.end());
@@ -112,7 +112,7 @@ void BluetoothRemoteGattServiceWin::GattCharacteristicDiscoveryComplete(
}
void BluetoothRemoteGattServiceWin::Update() {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
task_manager_->PostGetGattIncludedCharacteristics(
service_path_, service_uuid_, service_attribute_handle_,
@@ -124,7 +124,7 @@ void BluetoothRemoteGattServiceWin::OnGetIncludedCharacteristics(
std::unique_ptr<BTH_LE_GATT_CHARACTERISTIC> characteristics,
uint16_t num,
HRESULT hr) {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
UpdateIncludedCharacteristics(characteristics.get(), num);
included_characteristics_discovered_ = true;
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc ('k') | device/bluetooth/bluetooth_socket_net.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698