Index: chrome/browser/policy/policy_browsertest.cc |
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc |
index b2986624e89c21007081e93984c0ad2dceb1e19e..8a68669ab22312db7ef3e381adc14450c96552fa 100644 |
--- a/chrome/browser/policy/policy_browsertest.cc |
+++ b/chrome/browser/policy/policy_browsertest.cc |
@@ -783,8 +783,7 @@ class PolicyTest : public InProcessBrowserTest { |
blink::WebInputEvent::TimeStampForTesting); |
click_event.button = blink::WebMouseEvent::Button::Left; |
click_event.clickCount = 1; |
- click_event.x = x; |
- click_event.y = y; |
+ click_event.setPositionInWidget(x, y); |
contents->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(click_event); |
click_event.setType(blink::WebInputEvent::MouseUp); |
contents->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(click_event); |