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

Side by Side Diff: device/bluetooth/bluez/bluetooth_device_bluez.cc

Issue 2108923002: device: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_device_bluez.h" 5 #include "device/bluetooth/bluez/bluetooth_device_bluez.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 bluez::BluetoothDeviceClient::Properties* properties = 587 bluez::BluetoothDeviceClient::Properties* properties =
588 bluez::BluezDBusManager::Get()->GetBluetoothDeviceClient()->GetProperties( 588 bluez::BluezDBusManager::Get()->GetBluetoothDeviceClient()->GetProperties(
589 object_path); 589 object_path);
590 DCHECK(properties); 590 DCHECK(properties);
591 591
592 if (property_name == properties->services_resolved.name() && 592 if (property_name == properties->services_resolved.name() &&
593 properties->services_resolved.value()) { 593 properties->services_resolved.value()) {
594 VLOG(3) << "All services were discovered for device: " 594 VLOG(3) << "All services were discovered for device: "
595 << object_path.value(); 595 << object_path.value();
596 596
597 for (const auto iter : newly_discovered_gatt_services_) { 597 for (auto* iter : newly_discovered_gatt_services_) {
598 adapter()->NotifyGattDiscoveryComplete( 598 adapter()->NotifyGattDiscoveryComplete(
599 static_cast<BluetoothRemoteGattService*>(iter)); 599 static_cast<BluetoothRemoteGattService*>(iter));
600 } 600 }
601 newly_discovered_gatt_services_.clear(); 601 newly_discovered_gatt_services_.clear();
602 } 602 }
603 } 603 }
604 604
605 void BluetoothDeviceBlueZ::GattServiceAdded( 605 void BluetoothDeviceBlueZ::GattServiceAdded(
606 const dbus::ObjectPath& object_path) { 606 const dbus::ObjectPath& object_path) {
607 if (GetGattService(object_path.value())) { 607 if (GetGattService(object_path.value())) {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 void BluetoothDeviceBlueZ::OnForgetError(const ErrorCallback& error_callback, 869 void BluetoothDeviceBlueZ::OnForgetError(const ErrorCallback& error_callback,
870 const std::string& error_name, 870 const std::string& error_name,
871 const std::string& error_message) { 871 const std::string& error_message) {
872 LOG(WARNING) << object_path_.value() 872 LOG(WARNING) << object_path_.value()
873 << ": Failed to remove device: " << error_name << ": " 873 << ": Failed to remove device: " << error_name << ": "
874 << error_message; 874 << error_message;
875 error_callback.Run(); 875 error_callback.Run();
876 } 876 }
877 877
878 } // namespace bluez 878 } // namespace bluez
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698