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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.cc

Issue 7292033: First pass at freezing stable pepper interfaces to 1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 5 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
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index 6ed2ea83eaa8b3a9f05cb0a295fb7a2379663a39..c7df634b9fb901a848810d470f22cec2aad8721f 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -700,7 +700,13 @@ bool PluginInstance::LoadMessagingInterface() {
checked_for_plugin_messaging_interface_ = true;
plugin_messaging_interface_ =
static_cast<const PPP_Messaging*>(module_->GetPluginInterface(
- PPP_MESSAGING_INTERFACE));
+ PPP_MESSAGING_INTERFACE_1_0));
+ // TODO(dmichael): Remove support for 0.1.
+ if (!plugin_messaging_interface_) {
+ plugin_messaging_interface_ =
+ static_cast<const PPP_Messaging*>(module_->GetPluginInterface(
+ PPP_MESSAGING_INTERFACE_0_1));
+ }
}
return !!plugin_messaging_interface_;
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698