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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
index acc530ae437f1d05a2932c799693dab28048b0d7..5f8f86055c0a0ffaf00c9fb2d6de8a8c3e7a8753 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
@@ -314,7 +314,7 @@ void BluetoothLowEnergyConnectionFinder::RestartDiscoverySessionWhenReady() {
}
BluetoothDevice* BluetoothLowEnergyConnectionFinder::GetDevice(
- std::string device_address) {
+ const std::string& device_address) {
// It's not possible to simply use
// |adapter_->GetDevice(GetRemoteDeviceAddress())| to find the device with MAC
// address |GetRemoteDeviceAddress()|. For paired devices,

Powered by Google App Engine
This is Rietveld 408576698