Bug 337917 Make consumers stop using cids from other modules
git-svn-id: svn://10.0.0.236/trunk@200245 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsILocalFile.h"
|
||||
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
|
||||
|
||||
#include "nsStringAPI.h"
|
||||
#include "nsCRT.h"
|
||||
@@ -237,7 +236,7 @@ PageGrabber::Grab(const nsCString& aURL)
|
||||
// Create the URL object...
|
||||
nsCOMPtr<nsIURI> url;
|
||||
|
||||
nsCOMPtr<nsIIOService> ioService(do_GetService(kIOServiceCID, &rv));
|
||||
nsCOMPtr<nsIIOService> ioService(do_GetService(NS_IOSERVICE_CONTRACTID, &rv));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = ioService->NewURI(aURL, nsnull, nsnull, getter_AddRefs(url));
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
// Class IID's
|
||||
static NS_DEFINE_CID(kParserCID, NS_PARSER_CID);
|
||||
static NS_DEFINE_IID(kLoggingSinkCID, NS_LOGGING_SINK_CID);
|
||||
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
|
||||
|
||||
// Interface IID's
|
||||
|
||||
@@ -86,7 +85,7 @@ nsresult GenerateBaselineFile(const char* aSourceFilename,const char* aBaselineF
|
||||
localfile->InitWithNativePath(nsDependentCString(aSourceFilename));
|
||||
nsCOMPtr<nsIURI> inputURI;
|
||||
{
|
||||
nsCOMPtr<nsIIOService> ioService(do_GetService(kIOServiceCID, &rv));
|
||||
nsCOMPtr<nsIIOService> ioService(do_GetService(NS_IOSERVICE_CONTRACTID, &rv));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
rv = ioService->NewFileURI(localfile, getter_AddRefs(inputURI));
|
||||
|
||||
Reference in New Issue
Block a user