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

Unified Diff: chrome/installer/util/delete_tree_work_item.h

Issue 1878313003: Convert //chrome/installer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert decompress.cc in mini_installer. 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/installer/util/delete_tree_work_item.h
diff --git a/chrome/installer/util/delete_tree_work_item.h b/chrome/installer/util/delete_tree_work_item.h
index d69439a4ff9c5c99bc1757e62563663c5dddba62..9af8fdf05079e770cbca6720634c384b7b6156cf 100644
--- a/chrome/installer/util/delete_tree_work_item.h
+++ b/chrome/installer/util/delete_tree_work_item.h
@@ -7,11 +7,11 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/installer/util/work_item.h"
// A WorkItem subclass that recursively deletes a file system hierarchy at the
@@ -58,12 +58,12 @@ class DeleteTreeWorkItem : public WorkItem {
// Contains the paths to the key files. If specified, deletion will be
// performed only if none of the key files are in use.
- scoped_ptr<base::FilePath[]> key_paths_;
+ std::unique_ptr<base::FilePath[]> key_paths_;
// Contains the temp directories for the backed-up key files. The directories
// are created and populated in Do() as-needed. We don't use a standard
// container for this since base::ScopedTempDir isn't CopyConstructible.
- scoped_ptr<base::ScopedTempDir[]> key_backup_paths_;
+ std::unique_ptr<base::ScopedTempDir[]> key_backup_paths_;
// The temporary directory into which the original root_path_ has been moved.
base::ScopedTempDir backup_path_;
« no previous file with comments | « chrome/installer/util/delete_reg_value_work_item_unittest.cc ('k') | chrome/installer/util/delete_tree_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698