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

Unified Diff: cc/debug/micro_benchmark_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_impl.h ('k') | cc/debug/picture_debug_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/micro_benchmark_impl.cc
diff --git a/cc/debug/micro_benchmark_impl.cc b/cc/debug/micro_benchmark_impl.cc
index b7d59ae360bab854ec95ce6d792aae9135c029de..8f818fd16eae89a21240a76476b70282de3c16f0 100644
--- a/cc/debug/micro_benchmark_impl.cc
+++ b/cc/debug/micro_benchmark_impl.cc
@@ -4,10 +4,11 @@
#include "cc/debug/micro_benchmark_impl.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/location.h"
-#include "base/memory/scoped_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/values.h"
@@ -16,7 +17,7 @@ namespace cc {
namespace {
void RunCallback(const MicroBenchmarkImpl::DoneCallback& callback,
- scoped_ptr<base::Value> result) {
+ std::unique_ptr<base::Value> result) {
callback.Run(std::move(result));
}
@@ -38,7 +39,7 @@ bool MicroBenchmarkImpl::IsDone() const {
void MicroBenchmarkImpl::DidCompleteCommit(LayerTreeHostImpl* host) {}
-void MicroBenchmarkImpl::NotifyDone(scoped_ptr<base::Value> result) {
+void MicroBenchmarkImpl::NotifyDone(std::unique_ptr<base::Value> result) {
origin_task_runner_->PostTask(
FROM_HERE, base::Bind(RunCallback, callback_, base::Passed(&result)));
is_done_ = true;
« no previous file with comments | « cc/debug/micro_benchmark_impl.h ('k') | cc/debug/picture_debug_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698