From 39e3b9538deaedaaa8104f1cc67bcddaacad8269 Mon Sep 17 00:00:00 2001 From: "shess@chromium.org" Date: Tue, 24 May 2011 22:07:05 +0000 Subject: [Mac] Allow NSExceptions in certain cases. Thirdy-party print drivers seem to be a source of NSExceptions which Chromium will never be able to fix. ScopedNSExceptionEnabler causes the code which makes throwing an NSException fatal to allow throws. The flag will be reset in -reportException: in most cases. For now, allow exceptions to be thrown for -selectPDE: (bug 80686) and PrintingContextMac::AskUserForSettings() (bug 82589). BUG=80686, 82589 TEST=Monitor crash server. Review URL: http://codereview.chromium.org/7038010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86503 0039d316-1c4b-4281-b951-d872f2087c98 --- base/base.gypi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'base/base.gypi') diff --git a/base/base.gypi b/base/base.gypi index c3bcd00..22d66f8 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -129,6 +129,8 @@ 'mac/scoped_cftyperef.h', 'mac/scoped_nsautorelease_pool.h', 'mac/scoped_nsautorelease_pool.mm', + 'mac/scoped_nsexception_enabler.h', + 'mac/scoped_nsexception_enabler.mm', 'mach_ipc_mac.h', 'mach_ipc_mac.mm', 'memory/linked_ptr.h', -- cgit v1.1