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

Unified Diff: third_party/crashpad/crashpad/client/prune_crash_reports.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/client/prune_crash_reports.cc
diff --git a/third_party/crashpad/crashpad/client/prune_crash_reports.cc b/third_party/crashpad/crashpad/client/prune_crash_reports.cc
index 03392492ed2b4dfb22cac33b6d0cb837ac674018..3487e54f972a2de0719327c921aecb9a5135b230 100644
--- a/third_party/crashpad/crashpad/client/prune_crash_reports.cc
+++ b/third_party/crashpad/crashpad/client/prune_crash_reports.cc
@@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "client/prune_crash_reports.h"
-
#include <sys/stat.h>
#include <algorithm>
#include <vector>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "build/build_config.h"
+#include "client/prune_crash_reports.h"
namespace crashpad {
@@ -66,11 +66,13 @@ void PruneCrashReportDatabase(CrashReportDatabase* database,
}
// static
-scoped_ptr<PruneCondition> PruneCondition::GetDefault() {
+std::unique_ptr<PruneCondition> PruneCondition::GetDefault() {
// DatabaseSizePruneCondition must be the LHS so that it is always evaluated,
// due to the short-circuting behavior of BinaryPruneCondition.
- return make_scoped_ptr(new BinaryPruneCondition(BinaryPruneCondition::OR,
- new DatabaseSizePruneCondition(1024 * 128), new AgePruneCondition(365)));
+ return base::WrapUnique(
+ new BinaryPruneCondition(BinaryPruneCondition::OR,
+ new DatabaseSizePruneCondition(1024 * 128),
+ new AgePruneCondition(365)));
}
static const time_t kSecondsInDay = 60 * 60 * 24;

Powered by Google App Engine
This is Rietveld 408576698