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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.cc

Issue 2577563002: Add struct traits for base::Value. (Closed)
Patch Set: Created 4 years 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: content/browser/renderer_host/media/video_capture_controller.cc
diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
index 5f226b65422b880d21a94c1fe6795ede553eb2a5..fd1712795601155069c4dbd36a7ce97277f105e3 100644
--- a/content/browser/renderer_host/media/video_capture_controller.cc
+++ b/content/browser/renderer_host/media/video_capture_controller.cc
@@ -436,9 +436,8 @@ void VideoCaptureController::OnIncomingCapturedVideoFrame(
frame->metadata()->SetDouble(VideoFrameMetadata::FRAME_RATE,
video_capture_format_.frame_rate);
}
- std::unique_ptr<base::DictionaryValue> metadata(
- new base::DictionaryValue());
- frame->metadata()->MergeInternalValuesInto(metadata.get());
+ std::unique_ptr<base::DictionaryValue> metadata =
+ frame->metadata()->CopyInternalValues();
// Only I420 and Y16 pixel formats are currently supported.
DCHECK(frame->format() == media::PIXEL_FORMAT_I420 ||

Powered by Google App Engine
This is Rietveld 408576698