diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 23:10:07 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 23:10:07 +0000 |
commit | 8cfc21f751e337584e2b60f2401e90a127fcc24e (patch) | |
tree | e25f87c6660887cc32d6a930cb81a1c65edee2a0 /chrome/browser/chrome_application_mac.h | |
parent | 1deca10016c82cfb473e54d5511c9215928b14eb (diff) | |
download | chromium_src-8cfc21f751e337584e2b60f2401e90a127fcc24e.zip chromium_src-8cfc21f751e337584e2b60f2401e90a127fcc24e.tar.gz chromium_src-8cfc21f751e337584e2b60f2401e90a127fcc24e.tar.bz2 |
[Mac] UMA histogram for uncaught NSExceptions.
NSExceptions break C++ assumptions. This starts to track how often
NSExceptions happen.
http://crbug.com/24463
TEST=Brower continues to operate.
Review URL: http://codereview.chromium.org/264061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_application_mac.h')
-rw-r--r-- | chrome/browser/chrome_application_mac.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/chrome_application_mac.h b/chrome/browser/chrome_application_mac.h index 6d5d95f..60b6438 100644 --- a/chrome/browser/chrome_application_mac.h +++ b/chrome/browser/chrome_application_mac.h @@ -12,6 +12,22 @@ @interface CrApplication : NSApplication @end +// Namespace for exception-reporting helper functions. Exposed for +// testing purposes. +namespace CrApplicationNSException { + +// Bin for unknown exceptions. +extern const size_t kUnknownNSException; + +// Returns the histogram bin for |exception| if it is one we track +// specifically, or |kUnknownNSException| if unknown. +size_t BinForException(NSException* exception); + +// Use UMA to track exception occurance. +void RecordExceptionWithUma(NSException* exception); + +} // CrApplicationNSException + #endif // __OBJC__ // CrApplicationCC provides access to CrApplication Objective-C selectors from |