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

Unified Diff: cc/debug/micro_benchmark_controller_impl.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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
« no previous file with comments | « cc/debug/micro_benchmark_controller_impl.h ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/micro_benchmark_controller_impl.cc
diff --git a/cc/debug/micro_benchmark_controller_impl.cc b/cc/debug/micro_benchmark_controller_impl.cc
index 8d917d717268c351c18296741f0460a0a4d9c3d1..7c46aedab8fc09f67576f6e9131e269abde0fecb 100644
--- a/cc/debug/micro_benchmark_controller_impl.cc
+++ b/cc/debug/micro_benchmark_controller_impl.cc
@@ -21,7 +21,7 @@ MicroBenchmarkControllerImpl::MicroBenchmarkControllerImpl(
MicroBenchmarkControllerImpl::~MicroBenchmarkControllerImpl() {}
void MicroBenchmarkControllerImpl::ScheduleRun(
- scoped_ptr<MicroBenchmarkImpl> benchmark) {
+ std::unique_ptr<MicroBenchmarkImpl> benchmark) {
benchmarks_.push_back(std::move(benchmark));
}
@@ -37,7 +37,7 @@ void MicroBenchmarkControllerImpl::DidCompleteCommit() {
void MicroBenchmarkControllerImpl::CleanUpFinishedBenchmarks() {
benchmarks_.erase(
std::remove_if(benchmarks_.begin(), benchmarks_.end(),
- [](const scoped_ptr<MicroBenchmarkImpl>& benchmark) {
+ [](const std::unique_ptr<MicroBenchmarkImpl>& benchmark) {
return benchmark->IsDone();
}),
benchmarks_.end());
« no previous file with comments | « cc/debug/micro_benchmark_controller_impl.h ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698