Bug 1108767 - Allow promises to be resolved without a MediaPromiseHolder. r=cpearce

It turns out that there are use-cases where this restriction is clunky.
This commit is contained in:
Bobby Holley 2014-12-08 17:19:05 -08:00
parent e9cb8ab7de
commit 5827f5f41e

View File

@ -225,9 +225,6 @@ public:
}
}
private:
// Resolve and Reject may only be invoked via MediaPromiseHolder.
friend class MediaPromiseHolder<MediaPromise<ResolveValueType, RejectValueType>>;
void Resolve(ResolveValueType aResolveValue, const char* aResolveSite)
{
MutexAutoLock lock(mMutex);