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

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

Issue 2394733002: [Mac Fix-It] removed base::mac::AmIForeground function. (Closed)
Patch Set: Addressed review comment 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 | « base/mac/mac_util.mm ('k') | 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 98d53d0458430fc5ead265e995c486400074f09c..bbb56fff51d22c9fff5eb2da45f398d004a5cb56 100644
--- a/chrome/browser/mac/relauncher.mm
+++ b/chrome/browser/mac/relauncher.mm
@@ -23,7 +23,6 @@
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/mac/mac_logging.h"
-#include "base/mac/mac_util.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/mac/scoped_nsobject.h"
#include "base/path_service.h"
@@ -101,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 (!base::mac::AmIForeground()) {
+ if (![[NSRunningApplication currentApplication] isActive]) {
relaunch_args.push_back(kRelauncherBackgroundArg);
}
« no previous file with comments | « base/mac/mac_util.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698