appshell is a service. patch by darin.
This commit is contained in:
Родитель
44aee4259f
Коммит
b9be9f5a0e
|
@ -751,7 +751,7 @@ int main(int argc, char *argv[])
|
|||
OverrideComponents();
|
||||
|
||||
NS_TIMELINE_ENTER("appStartup");
|
||||
nsCOMPtr<nsIAppShell> appShell = do_CreateInstance(kAppShellCID);
|
||||
nsCOMPtr<nsIAppShell> appShell = do_GetService(kAppShellCID);
|
||||
if (!appShell)
|
||||
{
|
||||
// if we can't get the nsIAppShell, then we should auto reg.
|
||||
|
@ -762,7 +762,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
registrar->AutoRegister(nsnull);
|
||||
|
||||
appShell = do_CreateInstance(kAppShellCID);
|
||||
appShell = do_GetService(kAppShellCID);
|
||||
|
||||
if (!appShell)
|
||||
return 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче