Index: device/bluetooth/bluetooth_adapter_chromeos.cc |
diff --git a/device/bluetooth/bluetooth_adapter_chromeos.cc b/device/bluetooth/bluetooth_adapter_chromeos.cc |
index fce8f8b42cc40fc7ea6a22ec0c9b1da7fa83f468..dd0ddf2ca4b5fec3b3fdcd1b9f1ff8d6659025d8 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" |
@@ -330,6 +331,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 |