Index: device/bluetooth/bluetooth_adapter_win.cc |
diff --git a/device/bluetooth/bluetooth_adapter_win.cc b/device/bluetooth/bluetooth_adapter_win.cc |
index fe537fd9916a8d7d106cdee68c3c826fec2a89b3..58e4eeb62820cb1ec9d0b1e83613f403b29214d5 100644 |
--- a/device/bluetooth/bluetooth_adapter_win.cc |
+++ b/device/bluetooth/bluetooth_adapter_win.cc |
@@ -358,7 +358,7 @@ void BluetoothAdapterWin::InitForTest( |
scoped_refptr<base::SequencedTaskRunner> ui_task_runner, |
scoped_refptr<base::SequencedTaskRunner> bluetooth_task_runner) { |
ui_task_runner_ = ui_task_runner; |
- if (ui_task_runner_ == nullptr) |
+ if (!ui_task_runner_) |
ui_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
task_manager_ = |
new BluetoothTaskManagerWin(ui_task_runner_); |