[Mac] Ignore spell-checker exceptions.
commitbb8fdacc6097766c54fb48e05c7a38662363da2c
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 Dec 2011 00:17:03 +0000 (10 00:17 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 Dec 2011 00:17:03 +0000 (10 00:17 +0000)
tree6084c4fd79452f9eed9929826568ec14c9e029d5
parent4e01d3c768296ed9c1187477d64cf97717d8c42b
[Mac] Ignore spell-checker exceptions.

Pasteboard corruption or bad third-party code can cause
+[NSSpellChecker sharedSpellChecker] to throw NSExceptions.  Chrome
treats NSExceptions as fatal, because they generally mean things are
awry.  Since this call can happen in response to calls from the
renderer, and the exceptions are not thrown from Chrome code, this
change enables them while retrieving the shared instance.

BUG=92399,95728

Review URL: http://codereview.chromium.org/8883040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113891 0039d316-1c4b-4281-b951-d872f2087c98
base/mac/scoped_nsexception_enabler.h
base/mac/scoped_nsexception_enabler.mm
chrome/browser/spellchecker/spellchecker_mac.mm