OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bluetooth_device_win.h" | 5 #include "device/bluetooth/bluetooth_device_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const base::Closure& callback, | 214 const base::Closure& callback, |
215 const ErrorCallback& error_callback) { | 215 const ErrorCallback& error_callback) { |
216 NOTIMPLEMENTED(); | 216 NOTIMPLEMENTED(); |
217 } | 217 } |
218 | 218 |
219 const BluetoothServiceRecord* BluetoothDeviceWin::GetServiceRecord( | 219 const BluetoothServiceRecord* BluetoothDeviceWin::GetServiceRecord( |
220 const std::string& uuid) const { | 220 const std::string& uuid) const { |
221 for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); | 221 for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); |
222 iter != service_record_list_.end(); | 222 iter != service_record_list_.end(); |
223 ++iter) { | 223 ++iter) { |
224 return *iter; | 224 if ((*iter)->uuid().compare(uuid) == 0) |
| 225 return *iter; |
225 } | 226 } |
226 return NULL; | 227 return NULL; |
227 } | 228 } |
228 | 229 |
229 } // namespace device | 230 } // namespace device |
OLD | NEW |