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

Unified Diff: third_party/crashpad/crashpad/util/win/module_version.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/util/win/module_version.cc
diff --git a/third_party/crashpad/crashpad/util/win/module_version.cc b/third_party/crashpad/crashpad/util/win/module_version.cc
index 62f9e4246bea481aadad9eab31c4d24911bf736f..bd835380f0e9252dacaf3aa5e0da8959706b7714 100644
--- a/third_party/crashpad/crashpad/util/win/module_version.cc
+++ b/third_party/crashpad/crashpad/util/win/module_version.cc
@@ -17,8 +17,9 @@
#include <windows.h>
#include <stdint.h>
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
namespace crashpad {
@@ -32,7 +33,7 @@ bool GetModuleVersionAndType(const base::FilePath& path,
return false;
}
- scoped_ptr<uint8_t[]> data(new uint8_t[size]);
+ std::unique_ptr<uint8_t[]> data(new uint8_t[size]);
if (!GetFileVersionInfo(path.value().c_str(), 0, size, data.get())) {
PLOG(WARNING) << "GetFileVersionInfo: "
<< base::UTF16ToUTF8(path.value());

Powered by Google App Engine
This is Rietveld 408576698