5th patch for bug 158080

Description: replace the hardcode of @mozilla.org/embedcomp/window-watcher;1 with NS_WINDOWWATCHER_CONTRACTID
Patch by Henry.Jia@sun.com
r=anto, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@126456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
henry.jia%sun.com
2002-08-06 06:20:45 +00:00
parent c863768990
commit 148ed167a2
18 changed files with 23 additions and 31 deletions

View File

@@ -64,7 +64,7 @@ nsJSConsoleService::~nsJSConsoleService()
NS_IMETHODIMP
nsJSConsoleService :: Open ( nsIDOMWindow *inParent )
{
nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));
nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService(NS_WINDOWWATCHER_CONTRACTID));
if (!wwatch)
return NS_ERROR_FAILURE;