Commit bf163d79 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Get rid of no longer needed app-startup observer initialization.

parent 7871a9f8
...@@ -46,8 +46,6 @@ WINE_DECLARE_DEBUG_CHANNEL(gecko); ...@@ -46,8 +46,6 @@ WINE_DECLARE_DEBUG_CHANNEL(gecko);
#define NS_EDITORCONTROLLER_CONTRACTID "@mozilla.org/editor/editorcontroller;1" #define NS_EDITORCONTROLLER_CONTRACTID "@mozilla.org/editor/editorcontroller;1"
#define NS_PREFERENCES_CONTRACTID "@mozilla.org/preferences;1" #define NS_PREFERENCES_CONTRACTID "@mozilla.org/preferences;1"
#define APPSTARTUP_TOPIC "app-startup"
#define PR_UINT32_MAX 0xffffffff #define PR_UINT32_MAX 0xffffffff
#define NS_STRING_CONTAINER_INIT_DEPEND 0x0002 #define NS_STRING_CONTAINER_INIT_DEPEND 0x0002
...@@ -559,12 +557,11 @@ static void set_preferences(void) ...@@ -559,12 +557,11 @@ static void set_preferences(void)
static BOOL init_xpcom(const PRUnichar *gre_path) static BOOL init_xpcom(const PRUnichar *gre_path)
{ {
nsresult nsres;
nsIObserver *pStartNotif;
nsIComponentRegistrar *registrar = NULL; nsIComponentRegistrar *registrar = NULL;
nsAString path; nsAString path;
nsIFile *gre_dir; nsIFile *gre_dir;
WCHAR *ptr; WCHAR *ptr;
nsresult nsres;
nsAString_InitDepend(&path, gre_path); nsAString_InitDepend(&path, gre_path);
nsres = NS_NewLocalFile(&path, FALSE, &gre_dir); nsres = NS_NewLocalFile(&path, FALSE, &gre_dir);
...@@ -600,19 +597,6 @@ static BOOL init_xpcom(const PRUnichar *gre_path) ...@@ -600,19 +597,6 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
ERR("NS_GetComponentRegistrar failed: %08x\n", nsres); ERR("NS_GetComponentRegistrar failed: %08x\n", nsres);
init_mutation(pCompMgr); init_mutation(pCompMgr);
nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr, NS_APPSTARTUPNOTIFIER_CONTRACTID,
NULL, &IID_nsIObserver, (void**)&pStartNotif);
if(NS_SUCCEEDED(nsres)) {
nsres = nsIObserver_Observe(pStartNotif, NULL, APPSTARTUP_TOPIC, NULL);
if(NS_FAILED(nsres))
ERR("Observe failed: %08x\n", nsres);
nsIObserver_Release(pStartNotif);
}else {
ERR("could not get appstartup-notifier: %08x\n", nsres);
}
set_preferences(); set_preferences();
nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr, NS_MEMORY_CONTRACTID, nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr, NS_MEMORY_CONTRACTID,
......
...@@ -153,6 +153,7 @@ typedef nsISupports nsIPluginStreamListener; ...@@ -153,6 +153,7 @@ typedef nsISupports nsIPluginStreamListener;
typedef nsISupports nsIContentSink; typedef nsISupports nsIContentSink;
typedef nsISupports nsIParserFilter; typedef nsISupports nsIParserFilter;
typedef nsISupports nsIDTD; typedef nsISupports nsIDTD;
typedef nsISupports nsIObserver;
[ [
object, object,
...@@ -180,16 +181,6 @@ interface nsIFactory : nsISupports ...@@ -180,16 +181,6 @@ interface nsIFactory : nsISupports
[ [
object, object,
uuid(db242e01-e4d9-11d2-9dde-000064657374),
local
]
interface nsIObserver : nsISupports
{
nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
}
[
object,
uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae), uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
local local
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment