[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


CrOS-Libchrome-Original-Commit: 39e3b9538deaedaaa8104f1cc67bcddaacad8269
1 file changed
tree: 92646783bce9f652ae6e5765ae66702bb216b013
  1. base/
  2. build/
  3. ipc/
  4. testing/
  5. third_party/