Improve inspector overlay disabling logic
This CL makes a few improvements in handling the case when the overlay agent gets disabled: - Moves the agent status check to the top of the SetInspectTool. - Adds a check for the agent status in the input event handler so that events are not handled when the agent is disabled. - SetInspectTool returns an error response if the agent is disabled that gets propagated to the client where applicable. This CL is a follow up for the previous fixes in this area [1][2]. [1]: https://crrev.com/c/2387560 [2]: https://crrev.com/c/2235553 Change-Id: Iee68ca735c8990ab15832b0f35c086cceeb98510 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2397735Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Reviewed-by:
Mathias Bynens <mathias@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Cr-Commit-Position: refs/heads/master@{#814275}
Showing
Please register or sign in to comment