Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2931)

Unified Diff: chrome/test/base/interactive_test_utils_mac.mm

Issue 2419673002: Fix a deprecated declaration warning in interactive_test_utils_mac.mm. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0d00f3a6614e3aacd4c9141ed971ae02590ea1d1..42ee5f272fd471c77ac778d80b31934fc7ecf378 100644
--- a/chrome/test/base/interactive_test_utils_mac.mm
+++ b/chrome/test/base/interactive_test_utils_mac.mm
@@ -21,7 +21,7 @@ bool ShowAndFocusNativeWindow(gfx::NativeWindow window) {
// Make sure an unbundled program can get the input focus.
ProcessSerialNumber psn = { 0, kCurrentProcess };
TransformProcessType(&psn,kProcessTransformToForegroundApplication);
- SetFrontProcess(&psn);
+ [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
base::scoped_nsobject<WindowedNSNotificationObserver> async_waiter;
if (![window isKeyWindow]) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698