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

Unified Diff: chromeos/dbus/fake_bluetooth_adapter_client.cc

Issue 183853010: Bluetooth: notify user of incoming pairing requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fit nits, add unit tests dep Created 6 years, 10 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: chromeos/dbus/fake_bluetooth_adapter_client.cc
diff --git a/chromeos/dbus/fake_bluetooth_adapter_client.cc b/chromeos/dbus/fake_bluetooth_adapter_client.cc
index a82e459bd02deeb6cd450af9394985a9535cdaba..636e7ad3eee5b72630a46983fe54c2c432db5b05 100644
--- a/chromeos/dbus/fake_bluetooth_adapter_client.cc
+++ b/chromeos/dbus/fake_bluetooth_adapter_client.cc
@@ -178,6 +178,11 @@ void FakeBluetoothAdapterClient::StopDiscovery(
DBusThreadManager::Get()->GetBluetoothDeviceClient());
device_client->EndDiscoverySimulation(dbus::ObjectPath(kAdapterPath));
+ if (simulation_interval_ms_ > 100) {
+ device_client->BeginIncomingPairingSimulation(
+ dbus::ObjectPath(kAdapterPath));
armansito 2014/02/28 23:20:06 Should we start the simulation only if |properties
keybuk 2014/02/28 23:21:28 Since there's no way to set those in the UI right
armansito 2014/02/28 23:46:03 We seem to be setting pairable to true by default
+ }
+
properties_->discovering.ReplaceValue(false);
}
}

Powered by Google App Engine
This is Rietveld 408576698