summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorki.stfu <ki.stfu@gmail.com>2015-09-23 11:31:24 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-23 18:31:59 +0000
commitf7cfa30ed8949fdee6d002c705eda176e08e155c (patch)
treedc5558aee40ac213d65c6400d784763922718bd3 /device
parentfba749c65b2747d0af7e6a28791b4927aa7bd782 (diff)
downloadchromium_src-f7cfa30ed8949fdee6d002c705eda176e08e155c.zip
chromium_src-f7cfa30ed8949fdee6d002c705eda176e08e155c.tar.gz
chromium_src-f7cfa30ed8949fdee6d002c705eda176e08e155c.tar.bz2
Cleanup: Pass std::string as const reference from device/
Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= R=armansito@chromium.org,rockot@chromium.org Review URL: https://codereview.chromium.org/1357173002 Cr-Commit-Position: refs/heads/master@{#350350}
Diffstat (limited to 'device')
-rw-r--r--device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc b/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
index f5b96f8..1b9c0b3 100644
--- a/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
+++ b/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
@@ -74,7 +74,7 @@ class BluetoothAdapterProfileChromeOSTest : public testing::Test {
class FakeDelegate
: public chromeos::BluetoothProfileServiceProvider::Delegate {
public:
- FakeDelegate(std::string device_path) : connections_(0) {
+ FakeDelegate(const std::string& device_path) : connections_(0) {
device_path_ = dbus::ObjectPath(device_path);
}