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

Unified Diff: cc/debug/traced_display_item_list.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/rendering_stats_unittest.cc ('k') | cc/debug/traced_display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/traced_display_item_list.h
diff --git a/cc/debug/traced_display_item_list.h b/cc/debug/traced_display_item_list.h
index 71cf66498beb20519b66436fe0454e224e8517ba..50733485e6f5b74f1f29b29686ce95ffb7aaab41 100644
--- a/cc/debug/traced_display_item_list.h
+++ b/cc/debug/traced_display_item_list.h
@@ -5,11 +5,11 @@
#ifndef CC_DEBUG_TRACED_DISPLAY_ITEM_LIST_H_
#define CC_DEBUG_TRACED_DISPLAY_ITEM_LIST_H_
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/trace_event/trace_event.h"
#include "cc/debug/traced_value.h"
@@ -20,10 +20,10 @@ class DisplayItemList;
class TracedDisplayItemList
: public base::trace_event::ConvertableToTraceFormat {
public:
- static scoped_ptr<ConvertableToTraceFormat> AsTraceableDisplayItemList(
+ static std::unique_ptr<ConvertableToTraceFormat> AsTraceableDisplayItemList(
scoped_refptr<const DisplayItemList> list,
bool include_items) {
- return scoped_ptr<ConvertableToTraceFormat>(
+ return std::unique_ptr<ConvertableToTraceFormat>(
new TracedDisplayItemList(list, include_items));
}
void AppendAsTraceFormat(std::string* out) const override;
« no previous file with comments | « cc/debug/rendering_stats_unittest.cc ('k') | cc/debug/traced_display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698