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

Unified Diff: third_party/crashpad/crashpad/snapshot/mac/process_snapshot_mac.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/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());
}

Powered by Google App Engine
This is Rietveld 408576698