Cleanup Items that I didn't want or otherwise didn't get in the last c/l

PiperOrigin-RevId: 390507261
This commit is contained in:
jfcarroll
2021-08-12 18:29:06 -07:00
committed by Copybara-Service
parent 07d33cfa9e
commit 628255ac59
2 changed files with 2 additions and 4 deletions
@@ -59,11 +59,9 @@ class BluetoothDevice : public api::BluetoothDevice {
BluetoothDevice& operator=(BluetoothDevice&&) = default;
// https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getName()
// TODO(b/184975123): replace with real implementation.
std::string GetName() const override;
// Returns BT MAC address assigned to this device.
// TODO(b/184975123): replace with real implementation.
std::string GetMacAddress() const override;
std::string GetId() { return id_; }
@@ -348,9 +348,9 @@ winrt::fire_and_forget BluetoothClassicMedium::DeviceWatcher_Updated(
winrt::fire_and_forget BluetoothClassicMedium::DeviceWatcher_Removed(
DeviceWatcher sender, DeviceInformationUpdate deviceInfo) {
if (IsWatcherStarted()) {
EnterCriticalSection(&critical_section_);
EnterCriticalSection(&critical_section_);
if (IsWatcherStarted()) {
if (discovery_callback_.device_lost_cb != nullptr) {
discovery_callback_.device_lost_cb(*devices_by_id_[deviceInfo.Id()]);
}