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

Unified Diff: Source/modules/device_orientation/NewDeviceOrientationController.cpp

Issue 26434002: Cleanup: Add more conversion helpers for usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to ToT. Patch for landing. Created 7 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
Index: Source/modules/device_orientation/NewDeviceOrientationController.cpp
diff --git a/Source/modules/device_orientation/NewDeviceOrientationController.cpp b/Source/modules/device_orientation/NewDeviceOrientationController.cpp
index 904202e029254ab74828f89e089c59cc8c2dddee..174508b0f15e28359f8c45166be82e16009939ad 100644
--- a/Source/modules/device_orientation/NewDeviceOrientationController.cpp
+++ b/Source/modules/device_orientation/NewDeviceOrientationController.cpp
@@ -89,8 +89,7 @@ void NewDeviceOrientationController::unregisterWithDispatcher()
bool NewDeviceOrientationController::isNullEvent(Event* event)
{
- ASSERT(event->type() == EventNames::deviceorientation);
- DeviceOrientationEvent* orientationEvent = static_cast<DeviceOrientationEvent*>(event);
+ DeviceOrientationEvent* orientationEvent = toDeviceOrientationEvent(event);
return !orientationEvent->orientation()->canProvideEventData();
}

Powered by Google App Engine
This is Rietveld 408576698