Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: device/bluetooth/bluetooth_device_win.cc

Issue 21089002: Fix bluetooth GetServiceRecord with uuid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698