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

Unified Diff: webkit/glue/webplugin_impl.cc

Issue 464074: Enable Pepper support by default, including building the test plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « webkit/glue/webplugin.h ('k') | webkit/tools/pepper_test_plugin/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.cc
===================================================================
--- webkit/glue/webplugin_impl.cc (revision 34100)
+++ webkit/glue/webplugin_impl.cc (working copy)
@@ -212,6 +212,9 @@
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.
@@ -225,7 +228,6 @@
if (!actual_mime_type.empty())
mime_type_ = actual_mime_type;
- delegate_ = plugin_delegate;
return true;
}
« no previous file with comments | « webkit/glue/webplugin.h ('k') | webkit/tools/pepper_test_plugin/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698