Don't use std::set, which is banned in Blink, in ServiceWorkerTimeoutTimer
ServiceWorkerTimeoutTimer is using std::set, which is banned in Blink. See the bug 1028982 for the details. This issue is rising in https://crrev.com/c/1906452/. We are renaming ServiceWorkerTimeoutTimer to ServiceWorkerEventQueue there, however, the renaming triggers presubmit warnings for existing usages of std::set. So I've decided to remove the usage of std::set in this CL. Since there is no std::set equivalent in WTF, we have to compromise. |id_event_map_| and |inflight_events_| are now merged, and the code became simpler. Regarding the performance impact, I think it's okay because UpdateStatus() is not called frequently. BUG: 1028982 Change-Id: I9f1c5a141d755772b5c96acb313a6c5fe3f27374 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1939161Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Commit-Queue: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#719899}
Showing
Please register or sign in to comment