summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/module.cc
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 16:39:23 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 16:39:23 +0000
commit657f4efd9e3a2716b7d634ead39bffa4a03ef57c (patch)
tree0e3d0f72f21d4fceae9a0d168763e9ecf76a2a30 /ppapi/cpp/module.cc
parente8d45e0f903a649e04ce421a3b60146af4695f4d (diff)
downloadchromium_src-657f4efd9e3a2716b7d634ead39bffa4a03ef57c.zip
chromium_src-657f4efd9e3a2716b7d634ead39bffa4a03ef57c.tar.gz
chromium_src-657f4efd9e3a2716b7d634ead39bffa4a03ef57c.tar.bz2
Remove untrusted scripting support.
BUG=82606 TEST=ppapi_tests,ppapi_unittests Review URL: http://codereview.chromium.org/7362012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/module.cc')
-rw-r--r--ppapi/cpp/module.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/ppapi/cpp/module.cc b/ppapi/cpp/module.cc
index 412a38f..927710a 100644
--- a/ppapi/cpp/module.cc
+++ b/ppapi/cpp/module.cc
@@ -132,28 +132,13 @@ PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
return PP_FromBool(instance->HandleDocumentLoad(URLLoader(pp_url_loader)));
}
-#ifndef PPAPI_INSTANCE_REMOVE_SCRIPTING
-PP_Var Instance_GetInstanceObject(PP_Instance pp_instance) {
- Module* module_singleton = Module::Get();
- if (!module_singleton)
- return Var().Detach();
- Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
- if (!instance)
- return Var().Detach();
- return instance->GetInstanceObject().Detach();
-}
-#endif
-
static PPP_Instance instance_interface = {
&Instance_DidCreate,
&Instance_DidDestroy,
&Instance_DidChangeView,
&Instance_DidChangeFocus,
&Instance_HandleInputEvent,
- &Instance_HandleDocumentLoad,
-#ifndef PPAPI_INSTANCE_REMOVE_SCRIPTING
- &Instance_GetInstanceObject
-#endif
+ &Instance_HandleDocumentLoad
};
// PPP_Messaging implementation ------------------------------------------------