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

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

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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: 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 43f80521820180a4d5455845082c7b1024595543..26d6d42f0862196d0cdb4adfafd1304f2a28d768 100644
--- a/chrome/utility/media_galleries/media_metadata_parser.cc
+++ b/chrome/utility/media_galleries/media_metadata_parser.cc
@@ -22,13 +22,13 @@ namespace metadata {
namespace {
void SetStringScopedPtr(const std::string& value,
- scoped_ptr<std::string>* destination) {
+ std::unique_ptr<std::string>* destination) {
DCHECK(destination);
if (!value.empty())
destination->reset(new std::string(value));
}
-void SetIntScopedPtr(int value, scoped_ptr<int>* destination) {
+void SetIntScopedPtr(int value, std::unique_ptr<int>* destination) {
DCHECK(destination);
if (value >= 0)
destination->reset(new int(value));
« no previous file with comments | « chrome/utility/media_galleries/media_metadata_parser.h ('k') | chrome/utility/media_galleries/pmp_column_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698