• Ken Rockot's avatar
    Allow Device Service access from any thread · 9067b0f8
    Ken Rockot authored
    This allows multiple device.mojom.DeviceService connections to the
    Device Service and changes content::GetDeviceService() to safely
    maintain independent sequence-local connections.
    
    The new behavior corrects an issue where an inadvertent background-
    thread client could trample the global Device Service instance early
    in startup, leaving all main-thread clients with a permanently broken
    connection.
    
    Bug: 1041804
    Change-Id: I3efcb661c9508e1e0007d00f2f9f963c26220de4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2168829Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Commit-Queue: Ken Rockot <rockot@google.com>
    Cr-Commit-Position: refs/heads/master@{#763452}
    9067b0f8
device_service.cc 6.24 KB