Bug 258106: nsDocShell should use nsIPrefService APIs instead of nsIPref.

Patch by Mikael Parknert (mikael@parknert.se), r=bzbarsky, sr=roc.


git-svn-id: svn://10.0.0.236/trunk@161827 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kjh-5727%comcast.net
2004-09-06 19:31:22 +00:00
parent f9cc5b8c67
commit a04d276004
2 changed files with 4 additions and 3 deletions

View File

@@ -82,6 +82,7 @@
#include "nsXPCOMCID.h"
#include "nsISeekableStream.h"
#include "nsAutoPtr.h"
#include "nsIPrefService.h"
// we want to explore making the document own the load group
// so we can associate the document URI with the load group.
@@ -3092,7 +3093,7 @@ NS_IMETHODIMP
nsDocShell::Create()
{
nsresult rv = NS_ERROR_FAILURE;
mPrefs = do_GetService(NS_PREF_CONTRACTID, &rv);
mPrefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
PRBool tmpbool;