From 49d5bba44cc0e59ed15cb04299fd36c701d58e59 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 10 Jul 2005 18:28:19 +0000 Subject: Use contract IDs. 2005-07-10 Christian Persch * embed/mozilla/EphyProtocolHandler.cpp: Use contract IDs. --- ChangeLog | 6 ++++++ embed/mozilla/EphyProtocolHandler.cpp | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index aad157df3..ca6684564 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-10 Christian Persch + + * embed/mozilla/EphyProtocolHandler.cpp: + + Use contract IDs. + 2005-07-10 Christian Persch * embed/mozilla/EphyProtocolHandler.cpp: diff --git a/embed/mozilla/EphyProtocolHandler.cpp b/embed/mozilla/EphyProtocolHandler.cpp index b327d5480..c91b6f4db 100644 --- a/embed/mozilla/EphyProtocolHandler.cpp +++ b/embed/mozilla/EphyProtocolHandler.cpp @@ -49,9 +49,6 @@ #include -static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID); -static NS_DEFINE_CID(kInputStreamChannelCID, NS_INPUTSTREAMCHANNEL_CID); - EphyProtocolHandler::EphyProtocolHandler() { LOG ("EphyProtocolHandler ctor [%p]\n", this); @@ -100,7 +97,7 @@ EphyProtocolHandler::NewURI(const nsACString &aSpec, nsIURI **_retval) { nsresult rv; - nsCOMPtr uri (do_CreateInstance(kSimpleURICID, &rv)); + nsCOMPtr uri (do_CreateInstance("@mozilla.org/network/simple-uri;1", &rv)); NS_ENSURE_SUCCESS (rv, rv); rv = uri->SetSpec (aSpec); @@ -548,7 +545,7 @@ EphyProtocolHandler::CreateErrorPage(nsIURI *aErrorURI, rv = storageStream->NewInputStream(0, getter_AddRefs (inputStream)); NS_ENSURE_SUCCESS (rv, rv); - nsCOMPtr channel (do_CreateInstance (kInputStreamChannelCID, &rv)); + nsCOMPtr channel (do_CreateInstance ("@mozilla.org/network/input-stream-channel;1", &rv)); NS_ENSURE_SUCCESS (rv, rv); rv |= channel->SetURI (aErrorURI); -- cgit v1.2.3