Index: dbus/end_to_end_async_unittest.cc |
diff --git a/dbus/end_to_end_async_unittest.cc b/dbus/end_to_end_async_unittest.cc |
index 1f2538af27893704bd855a7b13e694a9d3e5a110..fb8030bf4cb86d0d4f5202cf562e24faaafdfa0b 100644 |
--- a/dbus/end_to_end_async_unittest.cc |
+++ b/dbus/end_to_end_async_unittest.cc |
@@ -580,9 +580,9 @@ TEST_F(EndToEndAsyncTest, TestHugeSignal) { |
} |
TEST_F(EndToEndAsyncTest, DisconnectedSignal) { |
- bus_->PostTaskToDBusThread(FROM_HERE, |
- base::Bind(&Bus::ClosePrivateConnection, |
- base::Unretained(bus_.get()))); |
+ bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, |
+ base::Bind(&Bus::ClosePrivateConnection, |
+ base::Unretained(bus_.get()))); |
// OnDisconnected callback quits message loop. |
message_loop_.Run(); |
EXPECT_EQ(1, on_disconnected_call_count_); |