| 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 4c0e127bd63e4522f2d26a810e7020c235bed179..31d907d3fac30fd7c5b4a8fd111fa7fb1b680194 100644
|
| --- a/google_apis/gcm/engine/connection_factory_impl_unittest.cc
|
| +++ b/google_apis/gcm/engine/connection_factory_impl_unittest.cc
|
| @@ -272,9 +272,9 @@ class ConnectionFactoryImplTest
|
| };
|
|
|
| ConnectionFactoryImplTest::ConnectionFactoryImplTest()
|
| - : factory_(base::Bind(&ConnectionFactoryImplTest::ConnectionsComplete,
|
| + : factory_(base::Bind(&ConnectionFactoryImplTest::ConnectionsComplete,
|
| base::Unretained(this))),
|
| - run_loop_(new base::RunLoop()) {
|
| + run_loop_(new base::RunLoop()) {
|
| factory()->SetConnectionListener(this);
|
| factory()->Initialize(
|
| ConnectionFactory::BuildLoginRequestCallback(),
|
| @@ -433,7 +433,7 @@ TEST_F(ConnectionFactoryImplTest, CanarySucceedsRetryDuringLogin) {
|
| EXPECT_FALSE(factory()->IsEndpointReachable());
|
|
|
| // Pump the loop, to ensure the pending backoff retry has no effect.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE,
|
| base::MessageLoop::QuitClosure(),
|
| base::TimeDelta::FromMilliseconds(1));
|
|
|