Index: third_party/crashpad/crashpad/snapshot/mac/process_snapshot_mac.cc |
diff --git a/third_party/crashpad/crashpad/snapshot/mac/process_snapshot_mac.cc b/third_party/crashpad/crashpad/snapshot/mac/process_snapshot_mac.cc |
index 5794b8bc44a942c0de5780eaeacb0241bf1432e5..9cabe41918922a77846dd4e9e2e13a202a404d13 100644 |
--- a/third_party/crashpad/crashpad/snapshot/mac/process_snapshot_mac.cc |
+++ b/third_party/crashpad/crashpad/snapshot/mac/process_snapshot_mac.cc |
@@ -12,9 +12,9 @@ |
// See the License for the specific language governing permissions and |
// limitations under the License. |
-#include "snapshot/mac/process_snapshot_mac.h" |
- |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
+#include "snapshot/mac/process_snapshot_mac.h" |
#include "util/misc/tri_state.h" |
namespace crashpad { |
@@ -218,7 +218,7 @@ void ProcessSnapshotMac::InitializeThreads() { |
process_reader_.Threads(); |
for (const ProcessReader::Thread& process_reader_thread : |
process_reader_threads) { |
- auto thread = make_scoped_ptr(new internal::ThreadSnapshotMac()); |
+ auto thread = base::WrapUnique(new internal::ThreadSnapshotMac()); |
if (thread->Initialize(&process_reader_, process_reader_thread)) { |
threads_.push_back(thread.release()); |
} |
@@ -230,7 +230,7 @@ void ProcessSnapshotMac::InitializeModules() { |
process_reader_.Modules(); |
for (const ProcessReader::Module& process_reader_module : |
process_reader_modules) { |
- auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
+ auto module = base::WrapUnique(new internal::ModuleSnapshotMac()); |
if (module->Initialize(&process_reader_, process_reader_module)) { |
modules_.push_back(module.release()); |
} |