summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_main.cc
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 17:25:15 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 17:25:15 +0000
commitd02437b6e66f851f1b627418db1bb2e200497e3a (patch)
treeb8db39af85ca5c8a56081538e3a36277fc9c2c65 /chrome/app/chrome_main.cc
parentdceaa916f0c01a0d9f87ef77c91dc6bbce3b1979 (diff)
downloadchromium_src-d02437b6e66f851f1b627418db1bb2e200497e3a.zip
chromium_src-d02437b6e66f851f1b627418db1bb2e200497e3a.tar.gz
chromium_src-d02437b6e66f851f1b627418db1bb2e200497e3a.tar.bz2
[Mac] Enable CrZombie for all processes.
For the browser process, this will be overridden by -[BrowserCrApplication init] (which raises it). BUG=94551 TEST=Developers don't complain about zombie objects in other processes. Review URL: http://codereview.chromium.org/7826016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99754 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_main.cc')
-rw-r--r--chrome/app/chrome_main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 06437b4..8b8e797 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -57,6 +57,7 @@
#include "chrome/browser/mac/relauncher.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/mac/cfbundle_blocker.h"
+#include "chrome/common/mac/objc_zombie.h"
#include "grit/chromium_strings.h"
#include "third_party/WebKit/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.h"
#include "ui/base/l10n/l10n_util_mac.h"
@@ -361,6 +362,8 @@ class ChromeMainDelegate : public content::ContentMainDelegate {
#endif
#if defined(OS_MACOSX)
+ // TODO(shess): Enable zombies for everyone. http://crbug.com/94551
+ DCHECK(ObjcEvilDoers::ZombieEnable(true, 1000));
chrome_main::SetUpBundleOverrides();
chrome::common::mac::EnableCFBundleBlocker();
#endif