• Giovanni Ortuño Urquidi's avatar
    bluetooth: Refactor DBus clients to use CallMethodWithErrorResponse · 91a65275
    Giovanni Ortuño Urquidi authored
    Currently Bluetooth DBus clients use CallMethodWithErrorCallback which
    takes two callbacks one for success and one for failure.
    
    This patterns is hard to use for clients that implement a Mojo
    interface for example BluetoothSystem, so this CL deprecates the methods
    that take two callbacks and introduces one that takes a single callback.
    
    BluetoothSystem will soon replace all other clients of these DBus
    clients so it makes sense to move away from the two callbacks pattern and
    to the single callback pattern which BluetoothSystem can more easily
    use.
    
    Bug: 870192
    Change-Id: I703a8b8ed277bf94de6adbef6cb954ac66f2b602
    Reviewed-on: https://chromium-review.googlesource.com/c/1293292Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
    Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604026}
    91a65275
bluetooth_adapter_client.h 9.16 KB