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

Unified Diff: remoting/client/plugin/pepper_entrypoints.cc

Issue 397243004: Pepper: Remove trusted plugin loadable module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload for recommit after chromite fix Created 6 years, 4 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 | « ppapi/ppapi_cpp.gypi ('k') | remoting/remoting_client.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_entrypoints.cc
diff --git a/remoting/client/plugin/pepper_entrypoints.cc b/remoting/client/plugin/pepper_entrypoints.cc
index c6923e322a6b084b003f4d83611708e044b99485..7cd5bf165d86690621db54e0cb509c37876dd033 100644
--- a/remoting/client/plugin/pepper_entrypoints.cc
+++ b/remoting/client/plugin/pepper_entrypoints.cc
@@ -11,18 +11,9 @@
#include "ppapi/c/ppb_instance.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
+#include "ppapi/cpp/private/internal_module.h"
#include "remoting/client/plugin/chromoting_instance.h"
-static pp::Module* g_module_singleton = NULL;
-
-namespace pp {
-
-Module* Module::Get() {
- return g_module_singleton;
-}
-
-} // namespace pp
-
namespace remoting {
class ChromotingModule : public pp::Module {
@@ -46,13 +37,13 @@ int32_t PPP_InitializeModule(PP_Module module_id,
ChromotingInstance::RegisterLogMessageHandler();
#endif
- g_module_singleton = module;
+ pp::InternalSetModuleSingleton(module);
return PP_OK;
}
void PPP_ShutdownModule() {
delete pp::Module::Get();
- g_module_singleton = NULL;
+ pp::InternalSetModuleSingleton(NULL);
}
const void* PPP_GetInterface(const char* interface_name) {
« no previous file with comments | « ppapi/ppapi_cpp.gypi ('k') | remoting/remoting_client.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698