| Index: chrome/browser/cocoa/cocoa_test_helper.h
|
| diff --git a/chrome/browser/cocoa/cocoa_test_helper.h b/chrome/browser/cocoa/cocoa_test_helper.h
|
| index 50087ac2a7f207ae068791afceb1b1cedf0044d0..16fdafcde69491b58cb592ed40171a584459d587 100644
|
| --- a/chrome/browser/cocoa/cocoa_test_helper.h
|
| +++ b/chrome/browser/cocoa/cocoa_test_helper.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #import <Cocoa/Cocoa.h>
|
|
|
| +#include "base/debug_util.h"
|
| #include "base/file_path.h"
|
| #include "base/mac_util.h"
|
| #include "base/path_service.h"
|
| @@ -42,7 +43,11 @@ class CocoaTestHelper {
|
| styleMask:0
|
| backing:NSBackingStoreBuffered
|
| defer:NO]);
|
| - [window_ orderFront:nil];
|
| + if (DebugUtil::BeingDebugged()) {
|
| + [window_ orderFront:nil];
|
| + } else {
|
| + [window_ orderBack:nil];
|
| + }
|
|
|
| // Set the duration of AppKit-evaluated animations (such as frame changes)
|
| // to zero for testing purposes. That way they take effect immediately.
|
|
|