[webhid] Avoid DCHECK when revoking device permission
content::HidService incorrectly decrements the active frame count when revoking a permission for a device with no open connections. This CL changes the behavior so the active frame count is only decremented if a connection was closed as a result of revoking the permission. BUG=1137031 Change-Id: I686d1e11193991c8e5ddeb7a90d50c77b848fe53 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2463997 Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Auto-Submit: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#815893}
Showing
Please register or sign in to comment