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

Unified Diff: media/base/video_frame_metadata.cc

Issue 2577563002: Add struct traits for base::Value. (Closed)
Patch Set: rebase 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
« no previous file with comments | « media/base/video_frame_metadata.h ('k') | mojo/common/common_custom_types_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame_metadata.cc
diff --git a/media/base/video_frame_metadata.cc b/media/base/video_frame_metadata.cc
index 5d670a197250c755aa58a3fae81da1133be55f6f..3bc108683c7cb605b9e740ea9ee47013a62d0e26 100644
--- a/media/base/video_frame_metadata.cc
+++ b/media/base/video_frame_metadata.cc
@@ -151,9 +151,9 @@ bool VideoFrameMetadata::IsTrue(Key key) const {
return GetBoolean(key, &value) && value;
}
-void VideoFrameMetadata::MergeInternalValuesInto(
- base::DictionaryValue* out) const {
- out->MergeDictionary(&dictionary_);
+std::unique_ptr<base::DictionaryValue> VideoFrameMetadata::CopyInternalValues()
+ const {
+ return dictionary_.CreateDeepCopy();
}
void VideoFrameMetadata::MergeInternalValuesFrom(
« no previous file with comments | « media/base/video_frame_metadata.h ('k') | mojo/common/common_custom_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698