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

Unified Diff: ui/events/ozone/evdev/input_injector_evdev_unittest.cc

Issue 858333006: [PATCH 9.6/11] ozone: evdev: Remove extra PostTask during dispatch from EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: ui/events/ozone/evdev/input_injector_evdev_unittest.cc
diff --git a/ui/events/ozone/evdev/input_injector_evdev_unittest.cc b/ui/events/ozone/evdev/input_injector_evdev_unittest.cc
index cfbc61548863fb9cca45dbb0a3027e9d9c3c11ce..a373cfea1f2ba737976f9863433a51b877eb3a61 100644
--- a/ui/events/ozone/evdev/input_injector_evdev_unittest.cc
+++ b/ui/events/ozone/evdev/input_injector_evdev_unittest.cc
@@ -23,10 +23,9 @@ using testing::Property;
class EventObserver {
public:
- void EventDispatchCallback(scoped_ptr<Event> event) {
+ void EventDispatchCallback(Event* event) {
DispatchEventFromNativeUiEvent(
- event.get(),
- base::Bind(&EventObserver::OnEvent, base::Unretained(this)));
+ event, base::Bind(&EventObserver::OnEvent, base::Unretained(this)));
}
void OnEvent(Event* event) {

Powered by Google App Engine
This is Rietveld 408576698