diff options
author | ki.stfu <ki.stfu@gmail.com> | 2015-09-27 07:44:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-27 14:45:25 +0000 |
commit | f38f9317e240c37d884cae8c1a62d1baaa1c7231 (patch) | |
tree | 1725217861e757d499b71552032c7884db59403f /chrome/utility | |
parent | 3464d07379dde4631d87fa5822dfea653fadd69c (diff) | |
download | chromium_src-f38f9317e240c37d884cae8c1a62d1baaa1c7231.zip chromium_src-f38f9317e240c37d884cae8c1a62d1baaa1c7231.tar.gz chromium_src-f38f9317e240c37d884cae8c1a62d1baaa1c7231.tar.bz2 |
Cleanup: Pass std::string as const reference from chrome/
Passing std::string by reference can prevent extra copying of object.
BUG=367418
TEST=
R=jochen@chromium.org,sky@chromium.org,thakis@chromium.org
Review URL: https://codereview.chromium.org/1358783002
Cr-Commit-Position: refs/heads/master@{#351009}
Diffstat (limited to 'chrome/utility')
-rw-r--r-- | chrome/utility/importer/firefox_importer_unittest_utils_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc index 2856849..a1b1c04 100644 --- a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc +++ b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc @@ -245,7 +245,7 @@ class FFDecryptorClientChannelListener : public IPC::Listener { sender_->Send(new Msg_Decryptor_InitReturnCode(ret)); } - void OnDecrypt(std::string crypt) { + void OnDecrypt(const std::string& crypt) { base::string16 unencrypted_str = decryptor_.Decrypt(crypt); sender_->Send(new Msg_Decryptor_Response(unencrypted_str)); } |