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

Unified Diff: base/mac/mac_util.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.h ('k') | chrome/browser/mac/relauncher.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index d4b584debb78cd9f7a61eda786faa7a11bc2f13a..2f54b2799b5b01932b94fce98a63e5145ebae94b 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -218,26 +218,6 @@ void SwitchFullScreenModes(FullScreenMode from_mode, FullScreenMode to_mode) {
SetUIMode();
}
-bool AmIForeground() {
- ProcessSerialNumber foreground_psn = { 0 };
- OSErr err = GetFrontProcess(&foreground_psn);
- if (err != noErr) {
- OSSTATUS_DLOG(WARNING, err) << "GetFrontProcess";
- return false;
- }
-
- ProcessSerialNumber my_psn = { 0, kCurrentProcess };
-
- Boolean result = FALSE;
- err = SameProcess(&foreground_psn, &my_psn, &result);
- if (err != noErr) {
- OSSTATUS_DLOG(WARNING, err) << "SameProcess";
- return false;
- }
-
- return result;
-}
-
bool SetFileBackupExclusion(const FilePath& file_path) {
NSString* file_path_ns =
[NSString stringWithUTF8String:file_path.value().c_str()];
« no previous file with comments | « base/mac/mac_util.h ('k') | chrome/browser/mac/relauncher.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698