Index: content/renderer/pepper/host_var_tracker.cc |
diff --git a/content/renderer/pepper/host_var_tracker.cc b/content/renderer/pepper/host_var_tracker.cc |
index ed67dbaa616b0487a2e512d407e0d5e68a4f4c94..27f2977b08eede2ed23ac5f1c6202042264238fa 100644 |
--- a/content/renderer/pepper/host_var_tracker.cc |
+++ b/content/renderer/pepper/host_var_tracker.cc |
@@ -103,6 +103,17 @@ int HostVarTracker::GetLiveNPObjectVarsForInstance(PP_Instance instance) const { |
return static_cast<int>(found->second->size()); |
} |
+PP_Var HostVarTracker::MakeResourcePPVarFromMessage( |
+ PP_Instance instance, |
+ const IPC::Message& creation_message, |
+ int pending_renderer_id, |
+ int pending_browser_id) { |
+ // On the host side, the creation message is ignored when creating a resource. |
+ // Therefore, a call to this function indicates a null resource. Return the |
+ // resource 0. |
+ return MakeResourcePPVar(0); |
+} |
+ |
ppapi::ResourceVar* HostVarTracker::MakeResourceVar(PP_Resource pp_resource) { |
return new HostResourceVar(pp_resource); |
} |