prefs->RegisterCallback(cookie_lifetimeValue, cookie_LifetimeLimitPrefChanged, NULL);
prefs->RegisterCallback(cookie_lifetimeValue, cookie_LifetimeLimitPrefChanged, nsnull);   if (NS_FAILED(prefs->CopyCharPref(cookie_p3pPref, &cookie_P3P))) { cookie_P3P = PL_strdup(cookie_P3P_Default); } prefs->RegisterCallback(cookie_p3pPref, cookie_P3PPrefChanged, nsnull);
COOKIE_RegisterPrefCallbacks(void) {  PRInt32 n;  PRBool x;  nsresult rv;  nsCOMPtr<nsIPref> prefs(do_GetService(NS_PREF_CONTRACTID, &rv));  // Initialize for cookie_behaviorPref  if (NS_FAILED(prefs->GetIntPref(cookie_behaviorPref, &n))) {    n = PERMISSION_Accept;  }  cookie_SetBehaviorPref((PERMISSION_BehaviorEnum)n);  prefs->RegisterCallback(cookie_behaviorPref, cookie_BehaviorPrefChanged, NULL);  // Initialize for cookie_warningPref  if (NS_FAILED(prefs->GetBoolPref(cookie_warningPref, &x))) {    x = PR_FALSE;  }  cookie_SetWarningPref(x);  prefs->RegisterCallback(cookie_warningPref, cookie_WarningPrefChanged, NULL);  // Initialize for cookie_lifetimePref  if (NS_FAILED(prefs->GetIntPref(cookie_lifetimePref, &n))) {    n = COOKIE_Normal;  }  cookie_SetLifetimePref((COOKIE_LifetimeEnum)n);  prefs->RegisterCallback(cookie_lifetimePref, cookie_LifetimeOptPrefChanged, NULL);  // Initialize for cookie_lifetimeValue  if (!NS_FAILED(prefs->GetIntPref(cookie_lifetimeValue, &n))) {    cookie_SetLifetimeLimit(n);  }  prefs->RegisterCallback(cookie_lifetimeValue, cookie_LifetimeLimitPrefChanged, NULL);}