зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1559919 - Finish the WorkerHolder cleanup - part 2 - Remove dead code in PerformanceStorageWorker, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D35221 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7afa8dc82b
Коммит
492ae88ae0
|
@ -59,26 +59,6 @@ class PerformanceEntryAdder final : public WorkerControlRunnable {
|
|||
UniquePtr<PerformanceProxyData> mData;
|
||||
};
|
||||
|
||||
class PerformanceStorageWorkerHolder final : public WorkerHolder {
|
||||
RefPtr<PerformanceStorageWorker> mStorage;
|
||||
|
||||
public:
|
||||
explicit PerformanceStorageWorkerHolder(PerformanceStorageWorker* aStorage)
|
||||
: WorkerHolder("PerformanceStorageWorkerHolder",
|
||||
WorkerHolder::AllowIdleShutdownStart),
|
||||
mStorage(aStorage) {}
|
||||
|
||||
bool Notify(WorkerStatus aStatus) override {
|
||||
if (mStorage) {
|
||||
RefPtr<PerformanceStorageWorker> storage;
|
||||
storage.swap(mStorage);
|
||||
storage->ShutdownOnWorker();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
/* static */
|
||||
|
|
Загрузка…
Ссылка в новой задаче