PRBool enabled; prefBranch->GetBoolPref("ssr.enabled", &enabled); SetSSREnabled(enabled);  prefBranch->GetBoolPref("ssr.sites.enabled", &enabled); SetSiteSSREnabled(enabled);
nsSSRSupport::Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData){  nsresult rv;    if (!strcmp(aTopic,"app-startup"))   {    nsCOMPtr<nsIPrefBranch2> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv);    NS_ENSURE_SUCCESS(rv, rv);        prefBranch->AddObserver("ssr.", this, PR_FALSE);    return NS_OK;  }   if (!strcmp(aTopic, NS_PREFBRANCH_PREFCHANGE_TOPIC_ID))   {    nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(aSubject);    nsXPIDLCString cstr;        const char* pref = NS_ConvertUCS2toUTF8(aData).get();        if (!strcmp(pref, "ssr.enabled"))    {      PRBool enabled;      prefBranch->GetBoolPref(pref, &enabled);      SetSSREnabled(enabled);      return NS_OK;    }    if (!strcmp(pref, "ssr.site.enabled"))    {      PRBool enabled;      prefBranch->GetBoolPref(pref, &enabled);      SetSiteSSREnabled(enabled);      return NS_OK;    }  }  return NS_OK;}