diff options
author | ki.stfu <ki.stfu@gmail.com> | 2015-09-21 17:56:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-22 00:57:25 +0000 |
commit | d3709b5f91fe5d0d4accd7386da5a61743824b9e (patch) | |
tree | ffd618fc74a2588a96fc42be809f0dbf5ee0a93f /chromeos/audio/audio_devices_pref_handler_impl.h | |
parent | 15b28d658c5a66655c19a7299f2e50fcd7b591c3 (diff) | |
download | chromium_src-d3709b5f91fe5d0d4accd7386da5a61743824b9e.zip chromium_src-d3709b5f91fe5d0d4accd7386da5a61743824b9e.tar.gz chromium_src-d3709b5f91fe5d0d4accd7386da5a61743824b9e.tar.bz2 |
Cleanup: Pass std::string as const reference from chromeos/
Passing std::string by reference can prevent extra copying of object.
BUG=367418
TEST=
R=zelidrag@chromium.org,derat@chromium.org,gauravsh@chromium.org
Review URL: https://codereview.chromium.org/1353323002
Cr-Commit-Position: refs/heads/master@{#350078}
Diffstat (limited to 'chromeos/audio/audio_devices_pref_handler_impl.h')
-rw-r--r-- | chromeos/audio/audio_devices_pref_handler_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromeos/audio/audio_devices_pref_handler_impl.h b/chromeos/audio/audio_devices_pref_handler_impl.h index aeb9f3e..72dc335 100644 --- a/chromeos/audio/audio_devices_pref_handler_impl.h +++ b/chromeos/audio/audio_devices_pref_handler_impl.h @@ -64,8 +64,8 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl // previous global pref value to the new per device pref value for the // current active device. If a previous global setting doesn't exist, we'll // use default values of mute = off and volume = 75%. - void MigrateDeviceMuteSettings(std::string active_device); - void MigrateDeviceVolumeSettings(std::string active_device); + void MigrateDeviceMuteSettings(const std::string& active_device); + void MigrateDeviceVolumeSettings(const std::string& active_device); // Notifies the AudioPrefObserver for audio policy pref changes. void NotifyAudioPolicyChange(); |