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

Unified Diff: ui/events/test/mock_motion_event.cc

Issue 659713003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify Created 6 years, 2 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/event_factory_evdev.cc ('k') | ui/gfx/geometry/r_tree_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/mock_motion_event.cc
diff --git a/ui/events/test/mock_motion_event.cc b/ui/events/test/mock_motion_event.cc
index 24d81596bc62629f73accd78aa7110abc3d78292..f3de1ddceee8408c8d96a0a43824e0537316f7f0 100644
--- a/ui/events/test/mock_motion_event.cc
+++ b/ui/events/test/mock_motion_event.cc
@@ -94,7 +94,7 @@ scoped_ptr<MotionEvent> MockMotionEvent::Clone() const {
scoped_ptr<MotionEvent> MockMotionEvent::Cancel() const {
scoped_ptr<MockMotionEvent> event(new MockMotionEvent(*this));
event->set_action(MotionEvent::ACTION_CANCEL);
- return event.PassAs<MotionEvent>();
+ return event.Pass();
}
void MockMotionEvent::PressPoint(float x, float y) {
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/gfx/geometry/r_tree_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698