summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r--webkit/glue/webplugin_impl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 006e544..a3148b1 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -212,9 +212,6 @@ bool WebPluginImpl::initialize(WebPluginContainer* container) {
if (!plugin_delegate)
return NULL;
- // Set the delegate pointer before Initialize to allow Pepper
- // plugins to access to delegate functions during initialization.
- delegate_ = plugin_delegate;
// Set the container before Initialize because the plugin may
// synchronously call NPN_GetValue to get its container during its
// initialization.
@@ -228,6 +225,7 @@ bool WebPluginImpl::initialize(WebPluginContainer* container) {
if (!actual_mime_type.empty())
mime_type_ = actual_mime_type;
+ delegate_ = plugin_delegate;
return true;
}