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

Side by Side Diff: components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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 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/cryptauth/ble/bluetooth_low_energy_weave_client_connection. h" 5 #include "components/cryptauth/ble/bluetooth_low_energy_weave_client_connection. h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 if (!bluetooth_device) { 603 if (!bluetooth_device) {
604 PA_LOG(WARNING) << "Could not create GATT connection with " 604 PA_LOG(WARNING) << "Could not create GATT connection with "
605 << device_address_ << " because the device could not be " 605 << device_address_ << " because the device could not be "
606 << "found."; 606 << "found.";
607 return nullptr; 607 return nullptr;
608 } 608 }
609 609
610 if (remote_service_.id.empty()) { 610 if (remote_service_.id.empty()) {
611 std::vector<device::BluetoothRemoteGattService*> services = 611 std::vector<device::BluetoothRemoteGattService*> services =
612 bluetooth_device->GetGattServices(); 612 bluetooth_device->GetGattServices();
613 for (const auto& service : services) 613 for (auto* service : services)
614 if (service->GetUUID() == remote_service_.uuid) { 614 if (service->GetUUID() == remote_service_.uuid) {
615 remote_service_.id = service->GetIdentifier(); 615 remote_service_.id = service->GetIdentifier();
616 break; 616 break;
617 } 617 }
618 } 618 }
619 return bluetooth_device->GetGattService(remote_service_.id); 619 return bluetooth_device->GetGattService(remote_service_.id);
620 } 620 }
621 621
622 device::BluetoothRemoteGattCharacteristic* 622 device::BluetoothRemoteGattCharacteristic*
623 BluetoothLowEnergyWeaveClientConnection::GetGattCharacteristic( 623 BluetoothLowEnergyWeaveClientConnection::GetGattCharacteristic(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 number_of_failed_attempts(0) {} 666 number_of_failed_attempts(0) {}
667 667
668 BluetoothLowEnergyWeaveClientConnection::WriteRequest::WriteRequest( 668 BluetoothLowEnergyWeaveClientConnection::WriteRequest::WriteRequest(
669 const WriteRequest& other) = default; 669 const WriteRequest& other) = default;
670 670
671 BluetoothLowEnergyWeaveClientConnection::WriteRequest::~WriteRequest() {} 671 BluetoothLowEnergyWeaveClientConnection::WriteRequest::~WriteRequest() {}
672 672
673 } // namespace weave 673 } // namespace weave
674 674
675 } // namespace cryptauth 675 } // namespace cryptauth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698