Index: components/gcm_driver/gcm_channel_status_request.cc |
diff --git a/components/gcm_driver/gcm_channel_status_request.cc b/components/gcm_driver/gcm_channel_status_request.cc |
index 3cdf3ec0b7197eedc1f3ae07c702459f0dfdc4ba..bafaee3663ef8c9e82e832ec4ef09b3c7380c7f8 100644 |
--- a/components/gcm_driver/gcm_channel_status_request.cc |
+++ b/components/gcm_driver/gcm_channel_status_request.cc |
@@ -5,7 +5,9 @@ |
#include "components/gcm_driver/gcm_channel_status_request.h" |
#include "base/bind.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "components/gcm_driver/gcm_backoff_policy.h" |
#include "net/base/escape.h" |
#include "net/base/load_flags.h" |
@@ -142,11 +144,9 @@ void GCMChannelStatusRequest::RetryWithBackoff(bool update_backoff) { |
DVLOG(1) << "Delaying GCM channel request for " |
<< backoff_entry_.GetTimeUntilRelease().InMilliseconds() |
<< " ms."; |
- base::MessageLoop::current()->PostDelayedTask( |
- FROM_HERE, |
- base::Bind(&GCMChannelStatusRequest::RetryWithBackoff, |
- weak_ptr_factory_.GetWeakPtr(), |
- false), |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
+ FROM_HERE, base::Bind(&GCMChannelStatusRequest::RetryWithBackoff, |
+ weak_ptr_factory_.GetWeakPtr(), false), |
backoff_entry_.GetTimeUntilRelease()); |
return; |
} |