Attach BarcodeDetectionProviderPtr to an ExecutionContext supplement
This change creates a new class, BarcodeDetectorStatics, which owns the connection to BarcodeDetectionProvider. This allows it to implement the static methods on BarcodeDetector such as getSupportedFormats() without needing to create an instance of BarcodeDetector. This fixes an issue where getSupportedFormats() would reject when BarcodeDetection is unimplemented even if a successful connection to BarcodeDetectionProvider is made. It also avoids recreating the provider connection for every new BarcodeDetector. Bug: 983910 Change-Id: I7c7ea7df84f68bbed9b2bfc600852e4f4e5356cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1706893 Commit-Queue: Reilly Grant <reillyg@chromium.org> Commit-Queue: Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Auto-Submit: Reilly Grant <reillyg@chromium.org> Reviewed-by:Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Cr-Commit-Position: refs/heads/master@{#680560}
Showing
Please register or sign in to comment