bluetooth: Refactor DBus clients to use CallMethodWithErrorResponse
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:Steven Bennetts <stevenjb@chromium.org> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/master@{#604026}
Showing
Please register or sign in to comment