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

Unified Diff: media/cast/common/transport_encryption_handler.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: media/cast/common/transport_encryption_handler.cc
diff --git a/media/cast/common/transport_encryption_handler.cc b/media/cast/common/transport_encryption_handler.cc
index 54a43e8b52647fbd04d36ed1a2097e99e84b5382..360e40c63a8c48833bc35718842e0cc379e606a9 100644
--- a/media/cast/common/transport_encryption_handler.cc
+++ b/media/cast/common/transport_encryption_handler.cc
@@ -41,8 +41,8 @@ TransportEncryptionHandler::TransportEncryptionHandler()
TransportEncryptionHandler::~TransportEncryptionHandler() {}
-bool TransportEncryptionHandler::Initialize(std::string aes_key,
- std::string aes_iv_mask) {
+bool TransportEncryptionHandler::Initialize(const std::string& aes_key,
+ const std::string& aes_iv_mask) {
is_activated_ = false;
if (aes_iv_mask.size() == kAesKeySize && aes_key.size() == kAesKeySize) {
iv_mask_ = aes_iv_mask;

Powered by Google App Engine
This is Rietveld 408576698