OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/arc/bluetooth/bluetooth_struct_traits.h" | 5 #include "components/arc/bluetooth/bluetooth_struct_traits.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "device/bluetooth/bluetooth_advertisement.h" | 13 #include "device/bluetooth/bluetooth_advertisement.h" |
13 #include "device/bluetooth/bluetooth_uuid.h" | 14 #include "device/bluetooth/bluetooth_uuid.h" |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 // BluetoothUUID helpers. | 18 // BluetoothUUID helpers. |
18 constexpr size_t kUUIDSize = 16; | 19 constexpr size_t kUUIDSize = 16; |
19 | 20 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 for (const auto& adv_entry : adv_entries) | 230 for (const auto& adv_entry : adv_entries) |
230 adv_entry->AddTo(data.get()); | 231 adv_entry->AddTo(data.get()); |
231 | 232 |
232 data->set_include_tx_power(advertisement.include_tx_power()); | 233 data->set_include_tx_power(advertisement.include_tx_power()); |
233 | 234 |
234 *output = std::move(data); | 235 *output = std::move(data); |
235 return true; | 236 return true; |
236 } | 237 } |
237 | 238 |
238 } // namespace mojo | 239 } // namespace mojo |
OLD | NEW |