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

Unified Diff: content/renderer/pepper/pepper_hung_plugin_filter.cc

Issue 17741010: Make ChildThread::current() and ChildProcess::current() only work on the main thread of the child... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and also fix gpu single process case Created 7 years, 6 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
Index: content/renderer/pepper/pepper_hung_plugin_filter.cc
===================================================================
--- content/renderer/pepper/pepper_hung_plugin_filter.cc (revision 208740)
+++ content/renderer/pepper/pepper_hung_plugin_filter.cc (working copy)
@@ -5,6 +5,7 @@
#include "content/renderer/pepper/pepper_hung_plugin_filter.h"
#include "base/bind.h"
+#include "content/child/child_process.h"
#include "content/common/view_messages.h"
#include "content/renderer/render_thread_impl.h"
@@ -31,7 +32,7 @@
view_routing_id_(view_routing_id),
plugin_child_id_(plugin_child_id),
filter_(RenderThread::Get()->GetSyncMessageFilter()),
- io_loop_(RenderThreadImpl::current()->GetIOLoopProxy()),
+ io_loop_(ChildProcess::current()->io_message_loop_proxy()),
pending_sync_message_count_(0),
hung_plugin_showing_(false),
timer_task_pending_(false) {

Powered by Google App Engine
This is Rietveld 408576698