| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
|
| index 59608c95b7ef02d7adfb7a3edaabe0faa5aa190b..ebd04cf141d6fd4f45905ea02228d4cb28cefbbe 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
|
| @@ -18,6 +18,7 @@
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #import "testing/gtest_mac.h"
|
| #include "testing/platform_test.h"
|
| +#include "ui/base/cocoa/cocoa_base_utils.h"
|
|
|
| using ::testing::A;
|
| using ::testing::InSequence;
|
| @@ -50,7 +51,8 @@ NSEvent* Event(NSView* view, const NSPoint point, const NSEventType type,
|
| const NSUInteger clickCount) {
|
| NSWindow* window([view window]);
|
| const NSPoint locationInWindow([view convertPoint:point toView:nil]);
|
| - const NSPoint location([window convertBaseToScreen:locationInWindow]);
|
| + const NSPoint location =
|
| + ui::ConvertPointFromWindowToScreen(window, locationInWindow);
|
| return [NSEvent mouseEventWithType:type
|
| location:location
|
| modifierFlags:0
|
|
|