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

Unified Diff: third_party/crashpad/crashpad/client/prune_crash_reports.h

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/client/prune_crash_reports.h
diff --git a/third_party/crashpad/crashpad/client/prune_crash_reports.h b/third_party/crashpad/crashpad/client/prune_crash_reports.h
index 3f13991d187e7c84f449e552c50ec850cde8fe84..b66e934939b56e8b50d8576616d1fb22b69ab6f3 100644
--- a/third_party/crashpad/crashpad/client/prune_crash_reports.h
+++ b/third_party/crashpad/crashpad/client/prune_crash_reports.h
@@ -18,8 +18,9 @@
#include <sys/types.h>
#include <time.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "client/crash_report_database.h"
namespace crashpad {
@@ -39,7 +40,7 @@ class PruneCondition;
void PruneCrashReportDatabase(CrashReportDatabase* database,
PruneCondition* condition);
-scoped_ptr<PruneCondition> GetDefaultDatabasePruneCondition();
+std::unique_ptr<PruneCondition> GetDefaultDatabasePruneCondition();
//! \brief An abstract base class for evaluating crash reports for deletion.
//!
@@ -56,7 +57,7 @@ class PruneCondition {
//! of 128 MB.
//!
//! \return A PruneCondition for use with PruneCrashReportDatabase().
- static scoped_ptr<PruneCondition> GetDefault();
+ static std::unique_ptr<PruneCondition> GetDefault();
virtual ~PruneCondition() {}
@@ -136,8 +137,8 @@ class BinaryPruneCondition final : public PruneCondition {
private:
const Operator op_;
- scoped_ptr<PruneCondition> lhs_;
- scoped_ptr<PruneCondition> rhs_;
+ std::unique_ptr<PruneCondition> lhs_;
+ std::unique_ptr<PruneCondition> rhs_;
DISALLOW_COPY_AND_ASSIGN(BinaryPruneCondition);
};

Powered by Google App Engine
This is Rietveld 408576698