Refactor Offline detector to a separate class.
Refactor detection of offline connections for the purpose of offline indicator to a separate class. This class also handles the logic of waiting for 2 seconds after the connection is offline before notifying the offline indicator class. If the connection is online, then the indicator class is notified immediately. In the next CL, this class would also handle the logic of holding on to the notification when Chrome is brought to the foreground (see crbug.com/1093574) Change-Id: I3368fce894b1fa2dfda3efce3fef5c3764c7217b Bug: 1084740 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240899 Commit-Queue: Tarun Bansal <tbansal@chromium.org> Reviewed-by:Jian Li <jianli@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Reviewed-by:
Sinan Sahin <sinansahin@google.com> Cr-Commit-Position: refs/heads/master@{#779670}
Showing
Please register or sign in to comment