зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455695 P5 Remove unused ErrorResult argument from ServiceWorkerRegistration::Inner::Update(). r=baku
This commit is contained in:
Родитель
08c921af9d
Коммит
ebb0ae9748
|
@ -216,7 +216,7 @@ ServiceWorkerRegistration::Update(ErrorResult& aRv)
|
|||
RefPtr<DOMMozPromiseRequestHolder<ServiceWorkerRegistrationPromise>> holder =
|
||||
new DOMMozPromiseRequestHolder<ServiceWorkerRegistrationPromise>(global);
|
||||
|
||||
mInner->Update(aRv)->Then(
|
||||
mInner->Update()->Then(
|
||||
global->EventTargetFor(TaskCategory::Other), __func__,
|
||||
[outer, self, holder](const ServiceWorkerRegistrationDescriptor& aDesc) {
|
||||
holder->Complete();
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
ClearServiceWorkerRegistration(ServiceWorkerRegistration* aReg) = 0;
|
||||
|
||||
virtual RefPtr<ServiceWorkerRegistrationPromise>
|
||||
Update(ErrorResult& aRv) = 0;
|
||||
Update() = 0;
|
||||
|
||||
virtual RefPtr<GenericPromise>
|
||||
Unregister() = 0;
|
||||
|
|
|
@ -524,7 +524,7 @@ public:
|
|||
} // namespace
|
||||
|
||||
RefPtr<ServiceWorkerRegistrationPromise>
|
||||
ServiceWorkerRegistrationMainThread::Update(ErrorResult& aRv)
|
||||
ServiceWorkerRegistrationMainThread::Update()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_DIAGNOSTIC_ASSERT(mOuter);
|
||||
|
@ -713,7 +713,7 @@ ServiceWorkerRegistrationWorkerThread::ClearServiceWorkerRegistration(ServiceWor
|
|||
}
|
||||
|
||||
RefPtr<ServiceWorkerRegistrationPromise>
|
||||
ServiceWorkerRegistrationWorkerThread::Update(ErrorResult& aRv)
|
||||
ServiceWorkerRegistrationWorkerThread::Update()
|
||||
{
|
||||
if (NS_WARN_IF(!mWorkerRef->GetPrivate())) {
|
||||
return ServiceWorkerRegistrationPromise::CreateAndReject(
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
ClearServiceWorkerRegistration(ServiceWorkerRegistration* aReg) override;
|
||||
|
||||
RefPtr<ServiceWorkerRegistrationPromise>
|
||||
Update(ErrorResult& aRv) override;
|
||||
Update() override;
|
||||
|
||||
RefPtr<GenericPromise>
|
||||
Unregister() override;
|
||||
|
@ -110,7 +110,7 @@ public:
|
|||
ClearServiceWorkerRegistration(ServiceWorkerRegistration* aReg) override;
|
||||
|
||||
RefPtr<ServiceWorkerRegistrationPromise>
|
||||
Update(ErrorResult& aRv) override;
|
||||
Update() override;
|
||||
|
||||
RefPtr<GenericPromise>
|
||||
Unregister() override;
|
||||
|
|
Загрузка…
Ссылка в новой задаче