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

Unified Diff: cc/debug/micro_benchmark_controller.h

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.cc ('k') | cc/debug/micro_benchmark_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/micro_benchmark_controller.h
diff --git a/cc/debug/micro_benchmark_controller.h b/cc/debug/micro_benchmark_controller.h
index 95000cbaafc47d3a9f9fa394509946b5ba54a4d8..88ccc840ab53aa15625c4cf9cb9faf18ea21e2a8 100644
--- a/cc/debug/micro_benchmark_controller.h
+++ b/cc/debug/micro_benchmark_controller.h
@@ -30,10 +30,10 @@ class CC_EXPORT MicroBenchmarkController {
// Returns the id of the benchmark on success, 0 otherwise.
int ScheduleRun(const std::string& micro_benchmark_name,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
const MicroBenchmark::DoneCallback& callback);
// Returns true if the message was successfully delivered and handled.
- bool SendMessage(int id, scoped_ptr<base::Value> value);
+ bool SendMessage(int id, std::unique_ptr<base::Value> value);
void ScheduleImplBenchmarks(LayerTreeHostImpl* host_impl);
@@ -42,7 +42,7 @@ class CC_EXPORT MicroBenchmarkController {
int GetNextIdAndIncrement();
LayerTreeHost* host_;
- std::vector<scoped_ptr<MicroBenchmark>> benchmarks_;
+ std::vector<std::unique_ptr<MicroBenchmark>> benchmarks_;
static int next_id_;
scoped_refptr<base::SingleThreadTaskRunner> main_controller_task_runner_;
« no previous file with comments | « cc/debug/micro_benchmark.cc ('k') | cc/debug/micro_benchmark_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698