| Index: chrome/test/base/interactive_test_utils_mac.mm
|
| diff --git a/chrome/test/base/interactive_test_utils_mac.mm b/chrome/test/base/interactive_test_utils_mac.mm
|
| index 42ee5f272fd471c77ac778d80b31934fc7ecf378..ccbdde47a83e8d667f11b857c397cb3d325e527a 100644
|
| --- a/chrome/test/base/interactive_test_utils_mac.mm
|
| +++ b/chrome/test/base/interactive_test_utils_mac.mm
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/message_loop/message_loop.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| +#include "chrome/test/base/move_test_process_to_front_mac.h"
|
| #import "ui/base/test/windowed_nsnotification_observer.h"
|
|
|
| namespace ui_test_utils {
|
| @@ -19,9 +20,7 @@ void HideNativeWindow(gfx::NativeWindow window) {
|
|
|
| bool ShowAndFocusNativeWindow(gfx::NativeWindow window) {
|
| // Make sure an unbundled program can get the input focus.
|
| - ProcessSerialNumber psn = { 0, kCurrentProcess };
|
| - TransformProcessType(&psn,kProcessTransformToForegroundApplication);
|
| - [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
| + SetProcessToFront();
|
|
|
| base::scoped_nsobject<WindowedNSNotificationObserver> async_waiter;
|
| if (![window isKeyWindow]) {
|
|
|