| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/bluetooth/bluez/bluetooth_advertisement_bluez.h" | 5 #include "device/bluetooth/bluez/bluetooth_advertisement_bluez.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 ->GetBluetoothLEAdvertisingManagerClient() | 123 ->GetBluetoothLEAdvertisingManagerClient() |
| 124 ->UnregisterAdvertisement( | 124 ->UnregisterAdvertisement( |
| 125 adapter_->object_path(), provider_->object_path(), success_callback, | 125 adapter_->object_path(), provider_->object_path(), success_callback, |
| 126 base::Bind(&UnregisterErrorCallbackConnector, error_callback)); | 126 base::Bind(&UnregisterErrorCallbackConnector, error_callback)); |
| 127 provider_.reset(); | 127 provider_.reset(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void BluetoothAdvertisementBlueZ::Released() { | 130 void BluetoothAdvertisementBlueZ::Released() { |
| 131 LOG(WARNING) << "Advertisement released."; | 131 LOG(WARNING) << "Advertisement released."; |
| 132 provider_.reset(); | 132 provider_.reset(); |
| 133 FOR_EACH_OBSERVER(BluetoothAdvertisement::Observer, observers_, | 133 for (auto& observer : observers_) |
| 134 AdvertisementReleased(this)); | 134 observer.AdvertisementReleased(this); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace bluez | 137 } // namespace bluez |
| OLD | NEW |