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

Unified Diff: third_party/crashpad/crashpad/tools/crashpad_database_util.cc

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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: third_party/crashpad/crashpad/tools/crashpad_database_util.cc
diff --git a/third_party/crashpad/crashpad/tools/crashpad_database_util.cc b/third_party/crashpad/crashpad/tools/crashpad_database_util.cc
index 3cd573a8a62a2420697314f11241d39826e2db4d..acbadd02167d65f695f4da798dc301bce320422e 100644
--- a/third_party/crashpad/crashpad/tools/crashpad_database_util.cc
+++ b/third_party/crashpad/crashpad/tools/crashpad_database_util.cc
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <time.h>
+#include <memory>
#include <string>
#include <utility>
#include <vector>
@@ -28,7 +29,6 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
@@ -424,7 +424,7 @@ int DatabaseUtilMain(int argc, char* argv[]) {
return EXIT_FAILURE;
}
- scoped_ptr<CrashReportDatabase> database;
+ std::unique_ptr<CrashReportDatabase> database;
base::FilePath database_path = base::FilePath(
ToolSupport::CommandLineArgumentToFilePathStringType(options.database));
if (options.create) {
@@ -541,14 +541,14 @@ int DatabaseUtilMain(int argc, char* argv[]) {
}
for (const base::FilePath new_report_path : options.new_report_paths) {
- scoped_ptr<FileReaderInterface> file_reader;
+ std::unique_ptr<FileReaderInterface> file_reader;
bool is_stdin = false;
if (new_report_path.value() == FILE_PATH_LITERAL("-")) {
is_stdin = true;
file_reader.reset(new WeakStdioFileReader(stdin));
} else {
- scoped_ptr<FileReader> file_path_reader(new FileReader());
+ std::unique_ptr<FileReader> file_path_reader(new FileReader());
if (!file_path_reader->Open(new_report_path)) {
return EXIT_FAILURE;
}
« no previous file with comments | « third_party/crashpad/crashpad/test/win/win_multiprocess.h ('k') | third_party/crashpad/crashpad/tools/generate_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698