| Index: components/gcm_driver/gcm_client_impl.cc
|
| diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc
|
| index 45975091d2d1d431ee9689b2c034487ff1e63cfe..7777402bd096378bba606a221b06ca7ba88b7b51 100644
|
| --- a/components/gcm_driver/gcm_client_impl.cc
|
| +++ b/components/gcm_driver/gcm_client_impl.cc
|
| @@ -6,14 +6,16 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/files/file_path.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/sequenced_task_runner.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "base/time/default_clock.h"
|
| #include "base/timer/timer.h"
|
| #include "components/gcm_driver/gcm_account_mapper.h"
|
| @@ -719,10 +721,9 @@ void GCMClientImpl::SchedulePeriodicCheckin() {
|
| if (time_to_next_checkin < base::TimeDelta())
|
| time_to_next_checkin = base::TimeDelta();
|
|
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - base::Bind(&GCMClientImpl::StartCheckin,
|
| - periodic_checkin_ptr_factory_.GetWeakPtr()),
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| + FROM_HERE, base::Bind(&GCMClientImpl::StartCheckin,
|
| + periodic_checkin_ptr_factory_.GetWeakPtr()),
|
| time_to_next_checkin);
|
| }
|
|
|
|
|