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

Unified Diff: media/cast/common/transport_encryption_handler.cc

Issue 1360523002: Cleanup: Pass std::string as const reference from media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « media/cast/common/transport_encryption_handler.h ('k') | media/cast/test/end2end_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « media/cast/common/transport_encryption_handler.h ('k') | media/cast/test/end2end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698