Commit 1aebd5f7 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Fix new -Wint-in-bool-context warning

The trunk version of Clang caught this bug:

  ../../content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc:350:50:
  warning: converting the result of '<<' to a boolean; did you mean '(type <<
  ui::ET_TOUCH_CANCELLED) != 0'? [-Wint-in-bool-context]
      DCHECK(type >= ui::ET_TOUCH_RELEASED && type << ui::ET_TOUCH_CANCELLED);
                                                   ^


TBR=wjmaclean

Bug: 1007367
Change-Id: I0be9c853e6eb1b171fffd4b177e03a87abc9b932
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824078Reviewed-by: default avatarHans Wennborg <hans@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699683}
parent b91ca303
...@@ -347,7 +347,7 @@ class TouchSelectionControllerClientAuraSiteIsolationTest ...@@ -347,7 +347,7 @@ class TouchSelectionControllerClientAuraSiteIsolationTest
void SendTouch(RenderWidgetHostViewAura* view, void SendTouch(RenderWidgetHostViewAura* view,
ui::EventType type, ui::EventType type,
gfx::Point point) { gfx::Point point) {
DCHECK(type >= ui::ET_TOUCH_RELEASED && type << ui::ET_TOUCH_CANCELLED); DCHECK(type >= ui::ET_TOUCH_RELEASED && type <= ui::ET_TOUCH_CANCELLED);
// If we want the GestureRecognizer to create the gestures for us, we must // If we want the GestureRecognizer to create the gestures for us, we must
// register the outgoing touch event with it by sending it through the // register the outgoing touch event with it by sending it through the
// window's event dispatching system. // window's event dispatching system.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment