Index: dbus/object_manager_unittest.cc |
diff --git a/dbus/object_manager_unittest.cc b/dbus/object_manager_unittest.cc |
index ae03776a51df59a8a7e9903aa92aecb20ead67b4..d28368b35b037c9f0ef3037377d7a1b07dd788e7 100644 |
--- a/dbus/object_manager_unittest.cc |
+++ b/dbus/object_manager_unittest.cc |
@@ -13,6 +13,7 @@ |
#include "base/bind.h" |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/threading/thread.h" |
#include "base/threading/thread_restrictions.h" |
#include "dbus/bus.h" |
@@ -404,10 +405,9 @@ TEST_F(ObjectManagerTest, PropertiesChangedAsObjectsReceived) { |
// after setting up the match rule for PropertiesChanged. We should process |
// the PropertiesChanged event right after that. If we don't receive it within |
// 2 seconds, then fail the test. |
- message_loop_.PostDelayedTask( |
- FROM_HERE, |
- base::Bind(&ObjectManagerTest::PropertiesChangedTestTimeout, |
- base::Unretained(this)), |
+ message_loop_.task_runner()->PostDelayedTask( |
+ FROM_HERE, base::Bind(&ObjectManagerTest::PropertiesChangedTestTimeout, |
+ base::Unretained(this)), |
base::TimeDelta::FromSeconds(2)); |
while (last_name_value_ != "ChangedTestServiceName" && !timeout_expired_) { |