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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.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/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index d155c5b050e1fe68d4a41c633a8cf23fcfb785dd..2735eab3f51dbffe23d869704de1b46e2a412215 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -7305,8 +7305,8 @@ TEST_F(LayerTreeHostImplTest, ForcedDrawToSoftwareDeviceBasicRender) {
EXPECT_EQ(1, software_device->frames_ended_);
// Call another API method that is likely to hit nullptr in this mode.
- scoped_refptr<base::trace_event::TracedValue> state =
- make_scoped_refptr(new base::trace_event::TracedValue());
+ scoped_ptr<base::trace_event::TracedValue> state(
+ new base::trace_event::TracedValue());
host_impl_->ActivationStateAsValueInto(state.get());
}

Powered by Google App Engine
This is Rietveld 408576698