Bug 124895 Improper definition of NS_PROMPTSERVICE_CID

r=danm sr=alecf


git-svn-id: svn://10.0.0.236/trunk@114238 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com 2002-02-12 03:32:14 +00:00
parent bb7de755f9
commit 30f1ba30c9

View File

@ -38,7 +38,7 @@
#define HELPERAPPLAUNCHER_BUNDLE_URL "chrome://global/locale/helperAppLauncher.properties"
#define BRAND_BUNDLE_URL "chrome://global/locale/brand.properties"
#define NS_PROMPTSERVICE_CID "@mozilla.org/embedcomp/prompt-service;1"
#define NS_PROMPTSERVICE_CONTRACTID "@mozilla.org/embedcomp/prompt-service;1"
nsOSHelperAppService::nsOSHelperAppService() : nsExternalHelperAppService()
{
@ -105,7 +105,7 @@ NS_IMETHODIMP nsOSHelperAppService::ExternalProtocolHandlerExists(const char * a
getter_Copies(errorStr));
if (rv == NS_OK)
{
nsCOMPtr<nsIPromptService> prompt (do_GetService(NS_PROMPTSERVICE_CID));
nsCOMPtr<nsIPromptService> prompt (do_GetService(NS_PROMPTSERVICE_CONTRACTID));
if (prompt)
prompt->Alert(nsnull, NS_LITERAL_STRING("Alert").get(), errorStr.get());
}