Index: ui/events/platform/platform_event_source_unittest.cc |
diff --git a/ui/events/platform/platform_event_source_unittest.cc b/ui/events/platform/platform_event_source_unittest.cc |
index 2c88e514e5343385fce53224eda088b4fc0825fe..ec721835e6c7ae796f324225c05f386bf4cc1175 100644 |
--- a/ui/events/platform/platform_event_source_unittest.cc |
+++ b/ui/events/platform/platform_event_source_unittest.cc |
@@ -601,9 +601,9 @@ class DestroyedNestedOverriddenDispatcherQuitsNestedLoopIteration |
TestPlatformEventDispatcher* dispatcher) { |
ScopedVector<PlatformEvent> events; |
scoped_ptr<PlatformEvent> event(CreatePlatformEvent()); |
- events.push_back(event.release()); |
+ events.push_back(event.Pass()); |
event = CreatePlatformEvent(); |
- events.push_back(event.release()); |
+ events.push_back(event.Pass()); |
// Attempt to dispatch a couple of events. Dispatching the first event will |
// have terminated the ScopedEventDispatcher object, which will terminate |