Index: ui/events/test/test_event_target.cc |
diff --git a/ui/events/test/test_event_target.cc b/ui/events/test/test_event_target.cc |
index 8ea7438d738841b97acb56fcfdceb857f0458fd7..2f0fe2ada9cd1fe985e17a5e3db985a7b917a886 100644 |
--- a/ui/events/test/test_event_target.cc |
+++ b/ui/events/test/test_event_target.cc |
@@ -23,7 +23,7 @@ void TestEventTarget::AddChild(scoped_ptr<TestEventTarget> child) { |
if (child->parent()) { |
AddChild(child->parent()->RemoveChild(child.release())); |
} else { |
- children_.push_back(child.release()); |
+ children_.push_back(child.Pass()); |
} |
child_r->set_parent(this); |
} |