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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.cc

Issue 1828683002: [Extensions] Convert APIs to use movable types [3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Antony's Created 4 years, 9 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 | « chrome/common/extensions/api/copresence_private.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/cast_streaming_native_handler.cc
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.cc b/chrome/renderer/extensions/cast_streaming_native_handler.cc
index 6695ef4dda192969ac3322cf7157c677c5b4e9b2..6b55fdb91d36a4f2ded316f995124990e7e6e427 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.cc
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.cc
@@ -124,7 +124,7 @@ bool ToCastRtpPayloadParamsOrThrow(v8::Isolate* isolate,
}
for (size_t i = 0; i < ext_params.codec_specific_params.size(); ++i) {
CastCodecSpecificParams cast_codec_params;
- ToCastCodecSpecificParams(*ext_params.codec_specific_params[i],
+ ToCastCodecSpecificParams(ext_params.codec_specific_params[i],
&cast_codec_params);
cast_params->codec_specific_params.push_back(cast_codec_params);
}
@@ -151,11 +151,10 @@ void FromCastRtpPayloadParams(const CastRtpPayloadParams& cast_params,
if (cast_params.max_frame_rate > 0.0)
ext_params->max_frame_rate.reset(new double(cast_params.max_frame_rate));
for (size_t i = 0; i < cast_params.codec_specific_params.size(); ++i) {
- linked_ptr<CodecSpecificParams> ext_codec_params(
- new CodecSpecificParams());
+ CodecSpecificParams ext_codec_params;
FromCastCodecSpecificParams(cast_params.codec_specific_params[i],
- ext_codec_params.get());
- ext_params->codec_specific_params.push_back(ext_codec_params);
+ &ext_codec_params);
+ ext_params->codec_specific_params.push_back(std::move(ext_codec_params));
}
}
« no previous file with comments | « chrome/common/extensions/api/copresence_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698