Index: google_apis/gcm/engine/connection_factory_impl_unittest.cc |
diff --git a/google_apis/gcm/engine/connection_factory_impl_unittest.cc b/google_apis/gcm/engine/connection_factory_impl_unittest.cc |
index 31d907d3fac30fd7c5b4a8fd111fa7fb1b680194..7e8bc02e63f913c27e8c66adbe18707070cf9a81 100644 |
--- a/google_apis/gcm/engine/connection_factory_impl_unittest.cc |
+++ b/google_apis/gcm/engine/connection_factory_impl_unittest.cc |
@@ -434,8 +434,7 @@ TEST_F(ConnectionFactoryImplTest, CanarySucceedsRetryDuringLogin) { |
// Pump the loop, to ensure the pending backoff retry has no effect. |
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
- FROM_HERE, |
- base::MessageLoop::QuitClosure(), |
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), |
base::TimeDelta::FromMilliseconds(1)); |
WaitForConnections(); |
} |