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

Unified Diff: cc/debug/micro_benchmark_impl.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_controller_unittest.cc ('k') | cc/debug/micro_benchmark_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/micro_benchmark_impl.h
diff --git a/cc/debug/micro_benchmark_impl.h b/cc/debug/micro_benchmark_impl.h
index ed968a39fbc5010d79a1be9b2ac2d49d07e016bf..457eb4dbf4de969d38765004b34a6f4dd7a5e058 100644
--- a/cc/debug/micro_benchmark_impl.h
+++ b/cc/debug/micro_benchmark_impl.h
@@ -5,8 +5,9 @@
#ifndef CC_DEBUG_MICRO_BENCHMARK_IMPL_H_
#define CC_DEBUG_MICRO_BENCHMARK_IMPL_H_
+#include <memory>
+
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
namespace base {
@@ -21,7 +22,7 @@ class LayerImpl;
class PictureLayerImpl;
class CC_EXPORT MicroBenchmarkImpl {
public:
- typedef base::Callback<void(scoped_ptr<base::Value>)> DoneCallback;
+ typedef base::Callback<void(std::unique_ptr<base::Value>)> DoneCallback;
explicit MicroBenchmarkImpl(
const DoneCallback& callback,
@@ -35,7 +36,7 @@ class CC_EXPORT MicroBenchmarkImpl {
virtual void RunOnLayer(PictureLayerImpl* layer);
protected:
- void NotifyDone(scoped_ptr<base::Value> result);
+ void NotifyDone(std::unique_ptr<base::Value> result);
private:
DoneCallback callback_;
« no previous file with comments | « cc/debug/micro_benchmark_controller_unittest.cc ('k') | cc/debug/micro_benchmark_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698