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

Unified Diff: components/crash/content/app/run_as_crashpad_handler_win.cc

Issue 1884743002: Convert a few components from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint 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: components/crash/content/app/run_as_crashpad_handler_win.cc
diff --git a/components/crash/content/app/run_as_crashpad_handler_win.cc b/components/crash/content/app/run_as_crashpad_handler_win.cc
index 2e4053045a35a146084a8527e0f6057919cde2a9..e51cfd77e001452f2efe36fbd6f9d3dfcd87fd12 100644
--- a/components/crash/content/app/run_as_crashpad_handler_win.cc
+++ b/components/crash/content/app/run_as_crashpad_handler_win.cc
@@ -5,11 +5,11 @@
#include "components/crash/content/app/run_as_crashpad_handler_win.h"
#include <algorithm>
+#include <memory>
#include <string>
#include <vector>
#include "base/command_line.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -29,7 +29,7 @@ int RunAsCrashpadHandler(const base::CommandLine& command_line) {
}),
argv.end());
- scoped_ptr<char* []> argv_as_utf8(new char*[argv.size() + 1]);
+ std::unique_ptr<char* []> argv_as_utf8(new char*[argv.size() + 1]);
std::vector<std::string> storage;
storage.reserve(argv.size());
for (size_t i = 0; i < argv.size(); ++i) {
« no previous file with comments | « components/crash/content/app/crashpad_win.cc ('k') | components/crash/content/browser/crash_handler_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698