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

Unified Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 9655019: Fix a crash related to PPAPI scripting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix constructor init list order. Created 8 years, 9 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: ppapi/proxy/plugin_dispatcher.cc
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc
index f8cf342973e5570711b4c8d92827b09294b65074..11eea64f625a36a8c05c0d9b28df7951959cbe55 100644
--- a/ppapi/proxy/plugin_dispatcher.cc
+++ b/ppapi/proxy/plugin_dispatcher.cc
@@ -65,7 +65,7 @@ PluginDispatcher::PluginDispatcher(base::ProcessHandle remote_process_handle,
plugin_delegate_(NULL),
received_preferences_(false),
plugin_dispatcher_id_(0) {
- SetSerializationRules(new PluginVarSerializationRules);
+ SetSerializationRules(new PluginVarSerializationRules(AsWeakPtr()));
if (!g_live_dispatchers)
g_live_dispatchers = new DispatcherSet;

Powered by Google App Engine
This is Rietveld 408576698