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

Unified Diff: chrome/browser/mac/relauncher.mm

Issue 2398943002: [mac] Use -[NSApp isActive] for checking if current app is active. (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/browser/mac/relauncher.mm
diff --git a/chrome/browser/mac/relauncher.mm b/chrome/browser/mac/relauncher.mm
index bbb56fff51d22c9fff5eb2da45f398d004a5cb56..1ad1042256f030cbba8e0ccbb90517f0c825dcf3 100644
--- a/chrome/browser/mac/relauncher.mm
+++ b/chrome/browser/mac/relauncher.mm
@@ -100,7 +100,7 @@ bool RelaunchAppWithHelper(const std::string& helper,
// If this application isn't in the foreground, the relaunched one shouldn't
// be either.
- if (![[NSRunningApplication currentApplication] isActive]) {
+ if (![NSApp isActive]) {
relaunch_args.push_back(kRelauncherBackgroundArg);
}
« 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