PRBool useNewViewManager = PR_FALSE;
PRBool useNewViewManager = PR_TRUE;
static NS_IMETHODIMP ViewManagerConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult){  PRBool useNewViewManager = PR_FALSE;  nsCOMPtr<nsIPref> prefs( do_GetService(NS_PREF_CONTRACTID) );  if (prefs)    prefs->GetBoolPref(kUseNewViewManagerPref, &useNewViewManager);  return useNewViewManager ? nsViewManagerConstructor(aOuter, aIID, aResult)                           : nsViewManager2Constructor(aOuter, aIID, aResult);}