• Reilly Grant's avatar
    Attach BarcodeDetectionProviderPtr to an ExecutionContext supplement · d59edfa8
    Reilly Grant authored
    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: default avatarOvidio de Jesús Ruiz-Henríquez <odejesush@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#680560}
    d59edfa8
BUILD.gn 851 Bytes