Index: webkit/glue/plugins/npapi_extension_thunk.cc |
=================================================================== |
--- webkit/glue/plugins/npapi_extension_thunk.cc (revision 34161) |
+++ webkit/glue/plugins/npapi_extension_thunk.cc (working copy) |
@@ -9,7 +9,9 @@ |
#include "webkit/glue/plugins/plugin_instance.h" |
#include "webkit/glue/webplugin.h" |
#include "webkit/glue/webplugin_delegate.h" |
+//#include "third_party/npapi/bindings/npruntime.h" |
+#if defined(ENABLE_PEPPER) |
// FindInstance() |
// Finds a PluginInstance from an NPP. |
@@ -243,3 +245,18 @@ |
} |
} // namespace NPAPI |
+ |
+#else // Not compiling with pepper support |
+ |
+namespace NPAPI { |
+ |
+// This NOP function implements the getter for the extensions when the |
+// extensions aren't available. |
+NPError GetPepperExtensionsFunctions(void* value) { |
+ return NPERR_GENERIC_ERROR; |
+} |
+ |
+} // namespace NPAPI |
+ |
+#endif // defined(ENABLE_PEPPER) |
+ |