Bug 118656 -- clean up in plugin SDK, not part of the build
git-svn-id: svn://10.0.0.236/trunk@132133 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -38,13 +38,12 @@
|
||||
#include "plugin.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIMemory.h"
|
||||
#include "nsISupportsUtils.h" // this is where some useful macros defined
|
||||
|
||||
// service manager which will give the access to all public browser services
|
||||
// we will use memory service as an illustration
|
||||
nsIServiceManager * gServiceManager = NULL;
|
||||
|
||||
//static NS_DEFINE_IID(kMemoryCID, NS_MEMORY_CID);
|
||||
|
||||
// Unix needs this
|
||||
#ifdef XP_UNIX
|
||||
#define MIME_TYPES_HANDLED "application/simple-plugin"
|
||||
@@ -69,7 +68,7 @@ NPError NS_PluginInitialize()
|
||||
|
||||
NPN_GetValue(NULL, NPNVserviceManager, &sm);
|
||||
|
||||
// Mozilla returns nsIServiceManager so we can use it directly, doing QI on
|
||||
// Mozilla returns nsIServiceManager so we can use it directly; doing QI on
|
||||
// nsISupports here can still be more appropriate in case something is changed
|
||||
// in the future so we don't need to do casting of any sort.
|
||||
if(sm) {
|
||||
|
||||
Reference in New Issue
Block a user