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/debug_rect_history.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/debug_rect_history.h ('k') | cc/debug/devtools_instrumentation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/debug_rect_history.cc
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc
index cd3830317fe009442f93b75cc525ef1ebb3a5ab6..02264216c429bceb21d63d5f5a3da55db560922b 100644
--- a/cc/debug/debug_rect_history.cc
+++ b/cc/debug/debug_rect_history.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include "base/memory/ptr_util.h"
#include "cc/base/math_util.h"
#include "cc/layers/layer_impl.h"
#include "cc/layers/layer_iterator.h"
@@ -21,8 +22,8 @@
namespace cc {
// static
-scoped_ptr<DebugRectHistory> DebugRectHistory::Create() {
- return make_scoped_ptr(new DebugRectHistory());
+std::unique_ptr<DebugRectHistory> DebugRectHistory::Create() {
+ return base::WrapUnique(new DebugRectHistory());
}
DebugRectHistory::DebugRectHistory() {}
« no previous file with comments | « cc/debug/debug_rect_history.h ('k') | cc/debug/devtools_instrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698