summaryrefslogtreecommitdiffstats
path: root/base/mac_util.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 23:08:00 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 23:08:00 +0000
commit385f4973b13bcbd2deecfae311abfe10eaf3aee9 (patch)
tree0dd19b9e26444d691daef723df84ba3c2a44e491 /base/mac_util.h
parentda40d4ea45f0214f29480a37bf665192d694b957 (diff)
downloadchromium_src-385f4973b13bcbd2deecfae311abfe10eaf3aee9.zip
chromium_src-385f4973b13bcbd2deecfae311abfe10eaf3aee9.tar.gz
chromium_src-385f4973b13bcbd2deecfae311abfe10eaf3aee9.tar.bz2
Change when we enable Apple's Crash reporter.
Enable Apple Crash Reporter for Browser process in Non-Debug builds. * Introduce mac_util::IsBackgroundProcess(). * Invert logic around Breakpad Enabling/Disabling to make it clearer. * Honor the kDisableBreakpad switch. Our new policy: * Breakpad is enabled/disabled based on the user stats reporting opt-in flag - this hasn't changed. * Always disable Apple Crash in background processes (plug-in, renderer, etc). * If Breakpad is enabled browser crashes will be passed to Crash Reporter. * If Breakpad is NOT enabled browser [or any other foreground app] crashes will be passed to Crash Reporter in Release builds. Effectively this means that we now enable Crash Reporter for the browser process in Chromium release builds so these will no longer crash silently with no trace. Review URL: http://codereview.chromium.org/180048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac_util.h')
-rw-r--r--base/mac_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/mac_util.h b/base/mac_util.h
index 220d68e..96d77b2 100644
--- a/base/mac_util.h
+++ b/base/mac_util.h
@@ -24,6 +24,9 @@ bool FSRefFromPath(const std::string& path, FSRef* ref);
// Returns true if the application is running from a bundle
bool AmIBundled();
+// Returns true if this process is marked as a "Background only process".
+bool IsBackgroundOnlyProcess();
+
// Returns the main bundle or the override, used for code that needs
// to fetch resources from bundles, but work within a unittest where we
// aren't a bundle.