зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365504 - Remove the call to AbstractThread::GetCurrent() in ServiceWorkerUpdaterChild.cpp. r=bkelly
See bug 1365483 for the rationale. MozReview-Commit-ID: BDbdiWT2ZFa --HG-- extra : rebase_source : a834b683b4cbd7de24a3e3943ae3eb877db18732
This commit is contained in:
Родитель
a39c2178b9
Коммит
bdbca169de
|
@ -16,11 +16,14 @@ ServiceWorkerUpdaterChild::ServiceWorkerUpdaterChild(GenericPromise* aPromise,
|
|||
: mSuccessRunnable(aSuccessRunnable)
|
||||
, mFailureRunnable(aFailureRunnable)
|
||||
{
|
||||
// TODO: remove the main thread restriction after fixing bug 1364821.
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
MOZ_ASSERT(aPromise);
|
||||
MOZ_ASSERT(aSuccessRunnable);
|
||||
MOZ_ASSERT(aFailureRunnable);
|
||||
|
||||
aPromise->Then(AbstractThread::GetCurrent(), __func__,
|
||||
aPromise->Then(AbstractThread::MainThread(), __func__,
|
||||
[this]() {
|
||||
mPromiseHolder.Complete();
|
||||
Unused << Send__delete__(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче