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

Unified Diff: cc/debug/micro_benchmark_controller.cc

Issue 2258833002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/blink/web_content_layer_impl.cc ('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.cc
diff --git a/cc/debug/micro_benchmark_controller.cc b/cc/debug/micro_benchmark_controller.cc
index be196b1173a483579d4812dedede78c75fdee21f..ac393a3672b1a0f2e9da7a858f33c83619becb18 100644
--- a/cc/debug/micro_benchmark_controller.cc
+++ b/cc/debug/micro_benchmark_controller.cc
@@ -28,14 +28,12 @@ std::unique_ptr<MicroBenchmark> CreateBenchmark(
std::unique_ptr<base::Value> value,
const MicroBenchmark::DoneCallback& callback) {
if (name == "invalidation_benchmark") {
- return base::WrapUnique(
- new InvalidationBenchmark(std::move(value), callback));
+ return base::MakeUnique<InvalidationBenchmark>(std::move(value), callback);
} else if (name == "rasterize_and_record_benchmark") {
- return base::WrapUnique(
- new RasterizeAndRecordBenchmark(std::move(value), callback));
+ return base::MakeUnique<RasterizeAndRecordBenchmark>(std::move(value),
+ callback);
} else if (name == "unittest_only_benchmark") {
- return base::WrapUnique(
- new UnittestOnlyBenchmark(std::move(value), callback));
+ return base::MakeUnique<UnittestOnlyBenchmark>(std::move(value), callback);
}
return nullptr;
}
« no previous file with comments | « cc/blink/web_content_layer_impl.cc ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698