Refactor ArcBridgeServiceImpl part 1.
This CL refactors ArcBridgeServiceImpl focusing on the retry mechanism. - With this CL, it starts to use OneShotTimer, which supports cancel operation. - Rename "reconnect" to "restart" for wording consistency. - Introduce restart_delay_ for testing, instead of special bool flag. Also, for restarting of testing, get rid of synchronous PrerequisitesChanged() call, instead PostTask always. - Extract StartArcSession() for sharing PrerequisitesChanged() and restarting. - Added more DCHECKs. BUG=657687 BUG=b/31079732 TEST=Ran bots. Review-Url: https://codereview.chromium.org/2582003002 Cr-Commit-Position: refs/heads/master@{#439850}
Showing
Please register or sign in to comment