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

Unified Diff: chrome/utility/media_galleries/media_metadata_parser.cc

Issue 1825913002: [Extensions] Convert APIs to use movable types [7] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Steven'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/notifications.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/media_galleries/media_metadata_parser.cc
diff --git a/chrome/utility/media_galleries/media_metadata_parser.cc b/chrome/utility/media_galleries/media_metadata_parser.cc
index d5df856295a2977644cf74eaff4cc06b134be03f..43f80521820180a4d5455845082c7b1024595543 100644
--- a/chrome/utility/media_galleries/media_metadata_parser.cc
+++ b/chrome/utility/media_galleries/media_metadata_parser.cc
@@ -8,7 +8,6 @@
#include "base/bind.h"
#include "base/location.h"
-#include "base/memory/linked_ptr.h"
#include "base/strings/string_util.h"
#include "base/task_runner_util.h"
#include "base/threading/thread.h"
@@ -74,18 +73,17 @@ void ParseAudioVideoMetadata(
for (media::AudioVideoMetadataExtractor::StreamInfoVector::const_iterator it =
extractor.stream_infos().begin();
it != extractor.stream_infos().end(); ++it) {
- linked_ptr<MediaGalleries::StreamInfo> stream_info(
- new MediaGalleries::StreamInfo);
- stream_info->type = it->type;
+ MediaGalleries::StreamInfo stream_info;
+ stream_info.type = it->type;
for (std::map<std::string, std::string>::const_iterator tag_it =
it->tags.begin();
tag_it != it->tags.end(); ++tag_it) {
- stream_info->tags.additional_properties.SetString(tag_it->first,
- tag_it->second);
+ stream_info.tags.additional_properties.SetString(tag_it->first,
+ tag_it->second);
}
- metadata->raw_tags.push_back(stream_info);
+ metadata->raw_tags.push_back(std::move(stream_info));
}
if (get_attached_images) {
« no previous file with comments | « chrome/common/extensions/api/notifications.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698