mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Backed out changeset 1314168b5271 (bug 977372)
This commit is contained in:
parent
e846006c1a
commit
34af5d34ec
@ -21,6 +21,7 @@ using mozilla::ipc::CloseFileRunnable;
|
|||||||
CloseFileRunnable::CloseFileRunnable(const FileDescriptor& aFileDescriptor)
|
CloseFileRunnable::CloseFileRunnable(const FileDescriptor& aFileDescriptor)
|
||||||
: mFileDescriptor(aFileDescriptor)
|
: mFileDescriptor(aFileDescriptor)
|
||||||
{
|
{
|
||||||
|
MOZ_ASSERT(NS_IsMainThread());
|
||||||
MOZ_ASSERT(aFileDescriptor.IsValid());
|
MOZ_ASSERT(aFileDescriptor.IsValid());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,6 +41,8 @@ NS_IMPL_ISUPPORTS1(CloseFileRunnable, nsIRunnable)
|
|||||||
void
|
void
|
||||||
CloseFileRunnable::Dispatch()
|
CloseFileRunnable::Dispatch()
|
||||||
{
|
{
|
||||||
|
MOZ_ASSERT(NS_IsMainThread());
|
||||||
|
|
||||||
nsCOMPtr<nsIEventTarget> eventTarget =
|
nsCOMPtr<nsIEventTarget> eventTarget =
|
||||||
do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID);
|
do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID);
|
||||||
NS_ENSURE_TRUE_VOID(eventTarget);
|
NS_ENSURE_TRUE_VOID(eventTarget);
|
||||||
|
Loading…
Reference in New Issue
Block a user