| Index: chrome/test/base/interactive_test_utils_cocoa.mm
|
| diff --git a/chrome/test/base/interactive_test_utils_cocoa.mm b/chrome/test/base/interactive_test_utils_cocoa.mm
|
| index 228c0a249298b52778e33d2bf8929fc25c8a8d47..ee4e8c2da936b9515062ee4fa10c43511e27d684 100644
|
| --- a/chrome/test/base/interactive_test_utils_cocoa.mm
|
| +++ b/chrome/test/base/interactive_test_utils_cocoa.mm
|
| @@ -13,6 +13,7 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| #import "chrome/browser/ui/cocoa/view_id_util.h"
|
| +#include "ui/base/cocoa/cocoa_base_utils.h"
|
|
|
| namespace ui_test_utils {
|
|
|
| @@ -32,7 +33,7 @@ void MoveMouseToNSViewCenterAndPress(
|
| NSRect bounds = [view bounds];
|
| NSPoint center = NSMakePoint(NSMidX(bounds), NSMidY(bounds));
|
| center = [view convertPoint:center toView:nil];
|
| - center = [window convertBaseToScreen:center];
|
| + center = ui::ConvertPointFromWindowToScreen(window, center);
|
| center = NSMakePoint(center.x, [screen frame].size.height - center.y);
|
|
|
| ui_controls::SendMouseMoveNotifyWhenDone(
|
|
|