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

Unified Diff: third_party/crashpad/crashpad/snapshot/minidump/process_snapshot_minidump.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/snapshot/minidump/process_snapshot_minidump.cc
diff --git a/third_party/crashpad/crashpad/snapshot/minidump/process_snapshot_minidump.cc b/third_party/crashpad/crashpad/snapshot/minidump/process_snapshot_minidump.cc
index d2b5984c85ed9ffb980cd0b42e1ae614c688e6c9..71ebae9e34bafe4711e14d2ba8bf0e3a4e3dd79b 100644
--- a/third_party/crashpad/crashpad/snapshot/minidump/process_snapshot_minidump.cc
+++ b/third_party/crashpad/crashpad/snapshot/minidump/process_snapshot_minidump.cc
@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "snapshot/minidump/process_snapshot_minidump.h"
-
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
-#include "util/file/file_io.h"
+#include "base/memory/ptr_util.h"
#include "snapshot/minidump/minidump_simple_string_dictionary_reader.h"
+#include "snapshot/minidump/process_snapshot_minidump.h"
+#include "util/file/file_io.h"
namespace crashpad {
@@ -277,7 +277,7 @@ bool ProcessSnapshotMinidump::InitializeModules() {
? &module_crashpad_info_it->second
: nullptr;
- auto module = make_scoped_ptr(new internal::ModuleSnapshotMinidump());
+ auto module = base::WrapUnique(new internal::ModuleSnapshotMinidump());
if (!module->Initialize(
file_reader_, module_rva, module_crashpad_info_location)) {
return false;
@@ -325,7 +325,7 @@ bool ProcessSnapshotMinidump::InitializeModulesCrashpadInfo(
return false;
}
- scoped_ptr<MinidumpModuleCrashpadInfoLink[]> minidump_links(
+ std::unique_ptr<MinidumpModuleCrashpadInfoLink[]> minidump_links(
new MinidumpModuleCrashpadInfoLink[crashpad_module_count]);
if (!file_reader_->ReadExactly(
&minidump_links[0],

Powered by Google App Engine
This is Rietveld 408576698