Bug 232201 part 2 - update consumers to use inherited nsIPrefBranchInternal interface. This should be happy for codesize. r=alecf sr=darin
git-svn-id: svn://10.0.0.236/trunk@151994 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -88,10 +88,7 @@ nsPopupWindowManager::Init()
|
||||
}
|
||||
mPolicy = permission ? (PRUint32) DENY_POPUP : (PRUint32) ALLOW_POPUP;
|
||||
|
||||
nsCOMPtr<nsIPrefBranchInternal> prefInternal = do_QueryInterface(mPrefBranch, &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
prefInternal->AddObserver(kPopupDisablePref, this, PR_TRUE);
|
||||
}
|
||||
mPrefBranch->AddObserver(kPopupDisablePref, this, PR_TRUE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user