BarcodeDetector should be created on a background thread.
BarcodeDetector creation takes long time and triggers strict mode violation warning therefore should be created on a worker thread. Also some cleanup - new tab now can be created from worker thread as it is launching an intent instead of going through tab manager. Bug: 993920 Change-Id: Ic974ebe2cae41c7a82fca87976656335799f5ba6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081615 Commit-Queue: Gayane Petrosyan <gayane@chromium.org> Reviewed-by:Tanya Gupta <tgupta@chromium.org> Reviewed-by:
Travis Skare <skare@chromium.org> Cr-Commit-Position: refs/heads/master@{#750641}
Showing
Please register or sign in to comment