зеркало из https://github.com/mozilla/pjs.git
Bug 238468 NS_APPSTARTUPNOTIFIER_CONTRACTID should not live very long
r=bsmedberg sr=dbaron a=asa
This commit is contained in:
Родитель
de1e1ac301
Коммит
14f2cba95a
|
@ -1125,13 +1125,14 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp )
|
|||
NS_TIMELINE_ENTER("startupNotifier");
|
||||
|
||||
// Start up the core services:
|
||||
|
||||
// Please do not add new things to main1() - please hook into the
|
||||
// nsIAppStartupNotifier service.
|
||||
nsCOMPtr<nsIObserver> startupNotifier = do_CreateInstance(NS_APPSTARTUPNOTIFIER_CONTRACTID, &rv);
|
||||
if(NS_FAILED(rv))
|
||||
return rv;
|
||||
startupNotifier->Observe(nsnull, APPSTARTUP_TOPIC, nsnull);
|
||||
{
|
||||
// Please do not add new things to main1() - please hook into the
|
||||
// nsIAppStartupNotifier service.
|
||||
nsCOMPtr<nsIObserver> startupNotifier = do_CreateInstance(NS_APPSTARTUPNOTIFIER_CONTRACTID, &rv);
|
||||
if(NS_FAILED(rv))
|
||||
return rv;
|
||||
startupNotifier->Observe(nsnull, APPSTARTUP_TOPIC, nsnull);
|
||||
}
|
||||
NS_TIMELINE_LEAVE("startupNotifier");
|
||||
|
||||
NS_TIMELINE_ENTER("cmdLineArgs");
|
||||
|
|
Загрузка…
Ссылка в новой задаче