mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00

This is a long-overdue change in general. It's now particularly necessary because we want to start and stop the watchdog, potentially multiple times during a session. Encapsulating this into a class that we can destroy/instantiate several times means that we don't end up with inconsistent state. As a nice bonus, this centralizes the whole setup and makes it easier to comprehend. I actually had this nicely split up into several patches, but I accidentally squashed them while rebasing. :-(