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

Unified Diff: cc/debug/traced_display_item_list.cc

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
Index: cc/debug/traced_display_item_list.cc
diff --git a/cc/debug/traced_display_item_list.cc b/cc/debug/traced_display_item_list.cc
index 1b45a593f2a98f8c527bb7b7ace73ab1f597ad78..7da87b97fe9b3a4d5566391f30b6b52dff003554 100644
--- a/cc/debug/traced_display_item_list.cc
+++ b/cc/debug/traced_display_item_list.cc
@@ -19,8 +19,8 @@ TracedDisplayItemList::~TracedDisplayItemList() {
}
void TracedDisplayItemList::AppendAsTraceFormat(std::string* out) const {
- scoped_refptr<base::trace_event::ConvertableToTraceFormat> convertable =
- display_item_list_->AsValue(include_items_);
+ scoped_ptr<base::trace_event::ConvertableToTraceFormat> convertable(
+ display_item_list_->AsValue(include_items_));
convertable->AppendAsTraceFormat(out);
}
« no previous file with comments | « cc/debug/traced_display_item_list.h ('k') | cc/layers/layer.h » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698