Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Unified Diff: chrome/browser/chromeos/power/extension_event_observer.cc

Issue 1119803007: [chrome/browser/chromeos] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments & removed fake_provided_file_system.cc due to cancelable_task_tracker dependeā€¦ Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/power/extension_event_observer.cc
diff --git a/chrome/browser/chromeos/power/extension_event_observer.cc b/chrome/browser/chromeos/power/extension_event_observer.cc
index f5e3960608957b3de7df27b9936b37b0d7f2aa48..c986ef8ef26698a85e395d8a55da220571e13a94 100644
--- a/chrome/browser/chromeos/power/extension_event_observer.cc
+++ b/chrome/browser/chromeos/power/extension_event_observer.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/gcm.h"
@@ -252,7 +253,7 @@ void ExtensionEventObserver::OnSuspendImminent(bool dark_suspend) {
// to report suspend readiness. If there is a push message pending, we should
// receive it within that time and increment |suspend_keepalive_count_| to
// prevent this callback from reporting ready.
- base::MessageLoopProxy::current()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, suspend_readiness_callback_.callback(),
dark_suspend ? base::TimeDelta::FromMilliseconds(kDarkSuspendDelayMs)
: base::TimeDelta());
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698