if (eq) mAppShell->ListenToEventQueue(eq, PR_FALSE);
if (eq) { PRBool isNative = PR_TRUE;  eq->IsQueueNative(&isNative); if (isNative) mAppShell->ListenToEventQueue(eq, PR_FALSE); } } else if (!nsCRT::strcmp(aTopic, gSkinSelectedTopic) || !nsCRT::strcmp(aTopic, gLocaleSelectedTopic) || !nsCRT::strcmp(aTopic,  gInstallRestartTopic)) { if (mNativeAppSupport) mNativeAppSupport->SetIsServerMode(PR_FALSE);
NS_IMETHODIMP nsAppShellService::Observe(nsISupports *aSubject,                                         const PRUnichar *aTopic,                                         const PRUnichar *){  nsAutoString topic(aTopic);  NS_ASSERTION(mAppShell, "appshell service notified before appshell built");  if (topic.Equals(gEQActivatedNotification)) {    nsCOMPtr<nsIEventQueue> eq(do_QueryInterface(aSubject));    if (eq)      mAppShell->ListenToEventQueue(eq, PR_TRUE);  } else if (topic.Equals(gEQDestroyedNotification)) {    nsCOMPtr<nsIEventQueue> eq(do_QueryInterface(aSubject));    if (eq)      mAppShell->ListenToEventQueue(eq, PR_FALSE);  }  return NS_OK;}