Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android screencapture: fix possible hang in stopCapture()
When user denies screencapture by clicking 'Cancel' in OS permission dialog, Chrome will stop the capture after receiving the OnError() report. At this point, the |mMediaProjection| is not created yet and |mCaptureState| has moved to |ATTACHED|. So the capture state won't be |STOPPED| which will keep stopCapture() waiting at [1]. The fix is to change the capture state to |STOPPED| for such a scenario. [1]: https://cs.chromium.org/chromium/src/media/capture/content/android/java/src/org/chromium/media/ScreenCapture.java?l=324 BUG=718082 Review-Url: https://codereview.chromium.org/2857743003 Cr-Commit-Position: refs/heads/master@{#469255}
- Loading branch information