Index: device/bluetooth/test/bluetooth_test_win.cc |
diff --git a/device/bluetooth/test/bluetooth_test_win.cc b/device/bluetooth/test/bluetooth_test_win.cc |
index 46c39cd09b3a839dc3df1929f4e14b7b0205e8ed..5bbdebfc4dbb43ccb46b0a48927b5ba7677c92e1 100644 |
--- a/device/bluetooth/test/bluetooth_test_win.cc |
+++ b/device/bluetooth/test/bluetooth_test_win.cc |
@@ -472,8 +472,7 @@ win::GattCharacteristic* BluetoothTestWin::GetSimulatedCharacteristic( |
void BluetoothTestWin::RunPendingTasksUntilCallback() { |
std::deque<base::TestPendingTask> tasks = |
- bluetooth_task_runner_->GetPendingTasks(); |
- bluetooth_task_runner_->ClearPendingTasks(); |
+ bluetooth_task_runner_->TakePendingTasks(); |
int original_callback_count = callback_count_; |
int original_error_callback_count = error_callback_count_; |
do { |