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

Unified Diff: ui/events/platform/platform_event_source_unittest.cc

Issue 1138993007: Substituting pattern push_back(ptr.release()) with push_back(ptr.Pass()) in ui/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 5 years, 7 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
« no previous file with comments | « ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698