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

Unified Diff: ppapi/proxy/plugin_globals.cc

Issue 2407393002: Remove MessageLoop::current() from ppapi/proxy. (Closed)
Patch Set: fix test error Created 4 years, 2 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 | « no previous file | ppapi/proxy/proxy_completion_callback_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_globals.cc
diff --git a/ppapi/proxy/plugin_globals.cc b/ppapi/proxy/plugin_globals.cc
index 765ec64789764ff4248cf6c2435a8a075962ab1b..f2ee4efa50067cc23af39f299a9c633953848a46 100644
--- a/ppapi/proxy/plugin_globals.cc
+++ b/ppapi/proxy/plugin_globals.cc
@@ -4,11 +4,10 @@
#include "ppapi/proxy/plugin_globals.h"
-#include "base/location.h"
#include "base/macros.h"
-#include "base/single_thread_task_runner.h"
#include "base/task_runner.h"
#include "base/threading/thread.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_sender.h"
#include "ppapi/proxy/plugin_dispatcher.h"
@@ -189,7 +188,7 @@ base::TaskRunner* PluginGlobals::GetFileTaskRunner() {
void PluginGlobals::MarkPluginIsActive() {
if (!plugin_recently_active_) {
plugin_recently_active_ = true;
- if (!GetBrowserSender() || !base::MessageLoop::current())
+ if (!GetBrowserSender() || !base::ThreadTaskRunnerHandle::IsSet())
return;
GetBrowserSender()->Send(new PpapiHostMsg_Keepalive());
DCHECK(keepalive_throttle_interval_milliseconds_);
« no previous file with comments | « no previous file | ppapi/proxy/proxy_completion_callback_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698