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

Unified Diff: talk/media/webrtc/webrtcvideoengine2.cc

Issue 1241973002: Use std::string references instead of copying contents. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changed another occurrence. Created 5 years, 5 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: talk/media/webrtc/webrtcvideoengine2.cc
diff --git a/talk/media/webrtc/webrtcvideoengine2.cc b/talk/media/webrtc/webrtcvideoengine2.cc
index 657475b281dad59f20c67c9219470098b53f5ed0..80982b41d3c241de3d5dabcd96441ec7c30bf532 100644
--- a/talk/media/webrtc/webrtcvideoengine2.cc
+++ b/talk/media/webrtc/webrtcvideoengine2.cc
@@ -154,7 +154,7 @@ bool CodecIsInternallySupported(const std::string& codec_name) {
return true;
}
if (CodecNamesEq(codec_name, kVp9CodecName)) {
- const std::string group_name =
+ const std::string& group_name =
webrtc::field_trial::FindFullName("WebRTC-SupportVP9");
pthatcher1 2015/07/16 09:45:48 I'm not sure this one is safe, either. webrtc::fi
return group_name == "Enabled" || group_name == "EnabledByFlag";
}

Powered by Google App Engine
This is Rietveld 408576698