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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_descriptor_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
Index: device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc b/device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc
index fb98e1ee70f39ab393efce8d092bdbe80753e192..4829188af0d82cb16eb262ab34db3592f8940143 100644
--- a/device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc
@@ -19,7 +19,7 @@ BluetoothRemoteGattDescriptorWin::BluetoothRemoteGattDescriptorWin(
descriptor_info_(descriptor_info),
ui_task_runner_(ui_task_runner),
weak_ptr_factory_(this) {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
DCHECK(parent_characteristic_);
DCHECK(descriptor_info_.get());
@@ -38,7 +38,7 @@ BluetoothRemoteGattDescriptorWin::BluetoothRemoteGattDescriptorWin(
}
BluetoothRemoteGattDescriptorWin::~BluetoothRemoteGattDescriptorWin() {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
parent_characteristic_->GetWinService()
->GetWinAdapter()
@@ -72,7 +72,7 @@ BluetoothRemoteGattDescriptorWin::GetPermissions() const {
void BluetoothRemoteGattDescriptorWin::ReadRemoteDescriptor(
const ValueCallback& callback,
const ErrorCallback& error_callback) {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
NOTIMPLEMENTED();
error_callback.Run(BluetoothRemoteGattService::GATT_ERROR_NOT_SUPPORTED);
@@ -82,7 +82,7 @@ void BluetoothRemoteGattDescriptorWin::WriteRemoteDescriptor(
const std::vector<uint8_t>& new_value,
const base::Closure& callback,
const ErrorCallback& error_callback) {
- DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
NOTIMPLEMENTED();
error_callback.Run(BluetoothRemoteGattService::GATT_ERROR_NOT_SUPPORTED);
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc ('k') | device/bluetooth/bluetooth_remote_gatt_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698