Index: device/bluetooth/bluetooth_adapter_chromeos.cc |
diff --git a/device/bluetooth/bluetooth_adapter_chromeos.cc b/device/bluetooth/bluetooth_adapter_chromeos.cc |
index 26a029bd6cf106b9052b5c6606a6f9d1ff4f66e9..5af69c84613975d64aa0653f2182e90bdb503183 100644 |
--- a/device/bluetooth/bluetooth_adapter_chromeos.cc |
+++ b/device/bluetooth/bluetooth_adapter_chromeos.cc |
@@ -21,6 +21,7 @@ |
#include "chromeos/dbus/bluetooth_input_client.h" |
#include "chromeos/dbus/dbus_thread_manager.h" |
#include "device/bluetooth/bluetooth_adapter_profile_chromeos.h" |
+#include "device/bluetooth/bluetooth_advertisement_chromeos.h" |
#include "device/bluetooth/bluetooth_audio_sink_chromeos.h" |
#include "device/bluetooth/bluetooth_device.h" |
#include "device/bluetooth/bluetooth_device_chromeos.h" |
@@ -312,6 +313,15 @@ void BluetoothAdapterChromeOS::RegisterAudioSink( |
error_callback); |
} |
+void BluetoothAdapterChromeOS::RegisterAdvertisement( |
+ scoped_ptr<device::BluetoothAdvertisement::Data> advertisement_data, |
+ const CreateAdvertisementCallback& callback, |
+ const CreateAdvertisementErrorCallback& error_callback) { |
+ scoped_refptr<BluetoothAdvertisementChromeOS> advertisement( |
+ new BluetoothAdvertisementChromeOS(advertisement_data.Pass(), this)); |
+ advertisement->Register(base::Bind(callback, advertisement), error_callback); |
+} |
+ |
void BluetoothAdapterChromeOS::RemovePairingDelegateInternal( |
BluetoothDevice::PairingDelegate* pairing_delegate) { |
// Before removing a pairing delegate make sure that there aren't any devices |