Commit fe109cbe authored by eugenebut's avatar eugenebut Committed by Commit bot

[mac] Use -[NSApp isActive] for checking if current app is active.

Use short version in RelaunchAppWithHelper() instead of
[[NSRunningApplication currentApplication] isActive]

BUG=650854

Review-Url: https://codereview.chromium.org/2398943002
Cr-Commit-Position: refs/heads/master@{#423716}
parent b4907cc5
...@@ -100,7 +100,7 @@ bool RelaunchAppWithHelper(const std::string& helper, ...@@ -100,7 +100,7 @@ bool RelaunchAppWithHelper(const std::string& helper,
// If this application isn't in the foreground, the relaunched one shouldn't // If this application isn't in the foreground, the relaunched one shouldn't
// be either. // be either.
if (![[NSRunningApplication currentApplication] isActive]) { if (![NSApp isActive]) {
relaunch_args.push_back(kRelauncherBackgroundArg); relaunch_args.push_back(kRelauncherBackgroundArg);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment