зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1499462: Remove dead failure handling and comments from ThrottledEventQueue::Create. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D8890 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0f5e860391
Коммит
21708e2918
|
@ -308,9 +308,6 @@ ThrottledEventQueue::Create(nsISerialEventTarget* aBaseTarget)
|
|||
MOZ_ASSERT(aBaseTarget);
|
||||
|
||||
RefPtr<Inner> inner = Inner::Create(aBaseTarget);
|
||||
if (NS_WARN_IF(!inner)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<ThrottledEventQueue> ref =
|
||||
new ThrottledEventQueue(inner.forget());
|
||||
|
|
|
@ -64,8 +64,7 @@ class ThrottledEventQueue final : public nsISerialEventTarget
|
|||
~ThrottledEventQueue() = default;
|
||||
|
||||
public:
|
||||
// Attempt to create a ThrottledEventQueue for the given target. This
|
||||
// may return nullptr if the browser is already shutting down.
|
||||
// Create a ThrottledEventQueue for the given target.
|
||||
static already_AddRefed<ThrottledEventQueue>
|
||||
Create(nsISerialEventTarget* aBaseTarget);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче