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

Unified Diff: components/exo/sub_surface.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: components/exo/sub_surface.cc
diff --git a/components/exo/sub_surface.cc b/components/exo/sub_surface.cc
index 6cdca0705ddee7376d39edad3dc49abf0efb4c5b..2357a1123b3ae2cc2913fdcd78a8447e186b5608 100644
--- a/components/exo/sub_surface.cc
+++ b/components/exo/sub_surface.cc
@@ -80,10 +80,9 @@ void SubSurface::SetCommitBehavior(bool synchronized) {
is_synchronized_ = synchronized;
}
-scoped_refptr<base::trace_event::TracedValue> SubSurface::AsTracedValue()
- const {
- scoped_refptr<base::trace_event::TracedValue> value =
- new base::trace_event::TracedValue;
+scoped_ptr<base::trace_event::TracedValue> SubSurface::AsTracedValue() const {
+ scoped_ptr<base::trace_event::TracedValue> value(
+ new base::trace_event::TracedValue());
value->SetBoolean("is_synchronized", is_synchronized_);
return value;
}

Powered by Google App Engine
This is Rietveld 408576698