Index: chrome/browser/referrer_policy_browsertest.cc |
diff --git a/chrome/browser/referrer_policy_browsertest.cc b/chrome/browser/referrer_policy_browsertest.cc |
index fedd897ca24519b7465291a43f0a95a62ebdbba0..60b736032524d9895585a3282ece969d6381c319 100644 |
--- a/chrome/browser/referrer_policy_browsertest.cc |
+++ b/chrome/browser/referrer_policy_browsertest.cc |
@@ -181,8 +181,7 @@ class ReferrerPolicyTest : public InProcessBrowserTest { |
blink::WebInputEvent::MouseDown, blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = button; |
- mouse_event.x = 15; |
- mouse_event.y = 15; |
+ mouse_event.setPositionInWidget(15, 15); |
mouse_event.clickCount = 1; |
tab->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |