Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge.cc

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/arc/bluetooth/arc_bluetooth_bridge.cc
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.cc b/components/arc/bluetooth/arc_bluetooth_bridge.cc
index 1d0a6c5b07c0a400f5904f7cb72ed6cba758154c..50d5f963167b36d812bba07999fd4fce00e73757 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
@@ -389,18 +389,18 @@ void ArcBluetoothBridge::CancelDiscovery() {
}
void ArcBluetoothBridge::OnPoweredOn(
- const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const {
+ const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const {
callback.Run(mojom::BluetoothAdapterState::ON);
SendCachedPairedDevices();
}
void ArcBluetoothBridge::OnPoweredOff(
- const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const {
+ const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const {
callback.Run(mojom::BluetoothAdapterState::OFF);
}
void ArcBluetoothBridge::OnPoweredError(
- const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const {
+ const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const {
LOG(WARNING) << "failed to change power state";
callback.Run(bluetooth_adapter_->IsPowered()
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.h ('k') | components/arc/obb_mounter/arc_obb_mounter_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698