Index: content/browser/android/popup_touch_handle_drawable.cc |
diff --git a/content/browser/android/popup_touch_handle_drawable.cc b/content/browser/android/popup_touch_handle_drawable.cc |
index 0ab39359216252388d22f0bcea4c741c2eafc39e..aef23f8fb0f9696f94bcf038d5320cd64fa345c6 100644 |
--- a/content/browser/android/popup_touch_handle_drawable.cc |
+++ b/content/browser/android/popup_touch_handle_drawable.cc |
@@ -33,22 +33,8 @@ void PopupTouchHandleDrawable::SetOrientation( |
ui::TouchHandleOrientation orientation) { |
JNIEnv* env = base::android::AttachCurrentThread(); |
jobject obj = drawable_.obj(); |
- switch (orientation) { |
- case ui::TOUCH_HANDLE_LEFT: |
- Java_PopupTouchHandleDrawable_setLeftOrientation(env, obj); |
- break; |
- |
- case ui::TOUCH_HANDLE_RIGHT: |
- Java_PopupTouchHandleDrawable_setRightOrientation(env, obj); |
- break; |
- |
- case ui::TOUCH_HANDLE_CENTER: |
- Java_PopupTouchHandleDrawable_setCenterOrientation(env, obj); |
- break; |
- |
- case ui::TOUCH_HANDLE_ORIENTATION_UNDEFINED: |
- NOTREACHED() << "Invalid touch handle orientation."; |
- }; |
+ Java_PopupTouchHandleDrawable_setOrientation(env, obj, |
+ static_cast<int>(orientation)); |
} |
void PopupTouchHandleDrawable::SetAlpha(float alpha) { |