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

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 869883003: Never lock the Pepper proxy lock on the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some pre-review cleanup Created 5 years, 10 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/ppapi_plugin/ppapi_thread.cc
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index 8b612fbe97b9d02238dd7c3f80952e2ece24479a..9608e192f2fb4e9c39b5f6fa88c5794951abc144 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -113,9 +113,11 @@ PpapiThread::PpapiThread(const base::CommandLine& command_line, bool is_broker)
blink::initialize(blink_platform_impl_.get());
if (!is_broker_) {
- channel()->AddFilter(
+ scoped_refptr<ppapi::proxy::PluginMessageFilter> plugin_filter(
new ppapi::proxy::PluginMessageFilter(
NULL, globals->resource_reply_thread_registrar()));
+ channel()->AddFilter(plugin_filter.get());
+ globals->RegisterResourceMessageFilters(plugin_filter.get());
raymes 2015/03/03 03:07:44 I guess both these add references?
dmichael (off chromium) 2015/03/03 18:27:56 This is a little confusing, and I struggled with h
}
}

Powered by Google App Engine
This is Rietveld 408576698