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

Unified Diff: chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc

Issue 939753004: device/bluetooth: Implement Unregister() of BlueotoothAudioSinkChromeOS and disconnection-related c… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_media_endpoint_service_provider.cc
diff --git a/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc b/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc
index 31f8361b72811fcdd6da2d2479acdbff1065f669..4af9a9ffd2fabac99fdf95345da9385ce40eb852 100644
--- a/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc
+++ b/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc
@@ -48,8 +48,19 @@ void FakeBluetoothMediaEndpointServiceProvider::SelectConfiguration(
void FakeBluetoothMediaEndpointServiceProvider::ClearConfiguration(
const ObjectPath& transport_path) {
+ if (transport_path !=
+ ObjectPath(FakeBluetoothMediaTransportClient::kTransportPath))
+ return;
+
VLOG(1) << object_path_.value() << ": ClearConfiguration on "
<< transport_path.value();
+
+ // Makes the transport object invalid for the given endpoint path.
+ FakeBluetoothMediaTransportClient* transport =
+ static_cast<FakeBluetoothMediaTransportClient*>(
+ DBusThreadManager::Get()->GetBluetoothMediaTransportClient());
+ transport->SetValid(object_path_, false);
armansito 2015/02/19 00:37:46 It's a bit strange that the endpoint service provi
Miao 2015/02/23 21:04:24 Right. Removed the test for this function, since C
+
delegate_->ClearConfiguration(transport_path);
}

Powered by Google App Engine
This is Rietveld 408576698