Port changes due to bug 943511 to comm-central, rs=bustage-fix to reopen CLOSED TREE.

--HG--
extra : rebase_source : 8fee42a96d820081d1164cd39f201052f0501ac7
This commit is contained in:
Joshua Cranmer 2013-12-12 10:29:11 -06:00
Родитель 92ae25b6e4
Коммит f7805c72c3
6 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -133,7 +133,7 @@ nsAddbookProtocolHandler::NewChannel(nsIURI *aURI, nsIChannel **_retval)
nsCOMPtr<nsIAsyncOutputStream> pipeOut;
nsCOMPtr<nsIPipe> pipe = do_CreateInstance("@mozilla.org/pipe;1");
rv = pipe->Init(false, false, 0, 0, nullptr);
rv = pipe->Init(false, false, 0, 0);
NS_ENSURE_SUCCESS(rv, rv);
pipe->GetInputStream(getter_AddRefs(pipeIn));

Просмотреть файл

@ -1446,7 +1446,7 @@ nsresult nsMsgAsyncWriteProtocol::SetupTransportState()
// first create a pipe which we'll use to write the data we want to send
// into.
nsCOMPtr<nsIPipe> pipe = do_CreateInstance("@mozilla.org/pipe;1");
rv = pipe->Init(true, true, 1024, 8, nullptr);
rv = pipe->Init(true, true, 1024, 8);
NS_ENSURE_SUCCESS(rv, rv);
nsIAsyncInputStream *inputStream = nullptr;

Просмотреть файл

@ -325,7 +325,7 @@ NS_IMETHODIMP nsSmtpService::NewChannel(nsIURI *aURI, nsIChannel **_retval)
nsCOMPtr<nsIAsyncInputStream> pipeIn;
nsCOMPtr<nsIAsyncOutputStream> pipeOut;
nsCOMPtr<nsIPipe> pipe = do_CreateInstance("@mozilla.org/pipe;1");
nsresult rv = pipe->Init(false, false, 0, 0, nullptr);
nsresult rv = pipe->Init(false, false, 0, 0);
if (NS_FAILED(rv))
return rv;

Просмотреть файл

@ -3003,7 +3003,7 @@ nsresult nsImapProtocol::BeginMessageDownLoad(
// we create an "infinite" pipe in case we get extremely long lines from the imap server,
// and the consumer is waiting for a whole line
nsCOMPtr<nsIPipe> pipe = do_CreateInstance("@mozilla.org/pipe;1");
rv = pipe->Init(false, false, 4096, PR_UINT32_MAX, nullptr);
rv = pipe->Init(false, false, 4096, PR_UINT32_MAX);
NS_ASSERTION(NS_SUCCEEDED(rv), "nsIPipe->Init failed!");
pipe->GetInputStream(getter_AddRefs(m_channelInputStream));

Просмотреть файл

@ -621,7 +621,7 @@ NS_IMETHODIMP nsStreamConverter::Init(nsIURI *aURI, nsIStreamListener * aOutList
// now we want to create a pipe which we'll use for converting the data...
nsCOMPtr<nsIPipe> pipe = do_CreateInstance("@mozilla.org/pipe;1");
rv = pipe->Init(true, true, 4096, 8, nullptr);
rv = pipe->Init(true, true, 4096, 8);
// initialize our emitter
if (NS_SUCCEEDED(rv) && mEmitter)

Просмотреть файл

@ -2093,7 +2093,7 @@ nsresult nsNNTPProtocol::BeginArticle()
if (m_channelListener) {
nsresult rv;
nsCOMPtr<nsIPipe> pipe = do_CreateInstance("@mozilla.org/pipe;1");
rv = pipe->Init(false, false, 4096, PR_UINT32_MAX, nullptr);
rv = pipe->Init(false, false, 4096, PR_UINT32_MAX);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to create pipe");
// TODO: return on failure?