Bug 1501404 - Part 2: Remove the XPCOM registration for nsRequestObserverProxy r=valentin

Depends on D9570

Differential Revision: https://phabricator.services.mozilla.com/D9571
This commit is contained in:
Ehsan Akhgari
2018-10-23 20:07:19 +00:00
parent 04f47f9e39
commit d9564e9fb9
3 changed files with 4 additions and 25 deletions

View File

@@ -49,7 +49,7 @@
#include "nsIPropertyBag2.h"
#include "nsIProtocolProxyService.h"
#include "mozilla/net/RedirectChannelRegistrar.h"
#include "nsIRequestObserverProxy.h"
#include "nsRequestObserverProxy.h"
#include "nsIScriptSecurityManager.h"
#include "nsISensitiveInfoHiddenURI.h"
#include "nsISimpleStreamListener.h"
@@ -1227,14 +1227,10 @@ NS_NewRequestObserverProxy(nsIRequestObserver **result,
nsIRequestObserver *observer,
nsISupports *context)
{
nsresult rv;
nsCOMPtr<nsIRequestObserverProxy> proxy =
do_CreateInstance(NS_REQUESTOBSERVERPROXY_CONTRACTID, &rv);
nsCOMPtr<nsIRequestObserverProxy> proxy = new nsRequestObserverProxy();
nsresult rv = proxy->Init(observer, context);
if (NS_SUCCEEDED(rv)) {
rv = proxy->Init(observer, context);
if (NS_SUCCEEDED(rv)) {
proxy.forget(result);
}
proxy.forget(result);
}
return rv;
}