diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-15 06:14:31 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-15 06:14:31 +0000 |
commit | 2bb381c1d6daf88f61284360d937fc6686c1151f (patch) | |
tree | c9506fcb9d9d8393d7a3a29f6b719ccaf4a8e859 /chrome/browser/chrome_browser_application_mac.mm | |
parent | bc3a8ba32db8fab0457a8b1ea8ec043ef27ff7ef (diff) | |
download | chromium_src-2bb381c1d6daf88f61284360d937fc6686c1151f.zip chromium_src-2bb381c1d6daf88f61284360d937fc6686c1151f.tar.gz chromium_src-2bb381c1d6daf88f61284360d937fc6686c1151f.tar.bz2 |
[Mac] Force crash on "View is not in any window" exception.
An exception named |NSInternalInconsistencyException| with the reason
"View is not in any window" seems to be correlated with a particular
shutdown crash on the crash server. Crash at the point where the
exception is raised to get a better stack backtrace.
BUG=62597
TEST=none
Review URL: http://codereview.chromium.org/6529004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_application_mac.mm')
-rw-r--r-- | chrome/browser/chrome_browser_application_mac.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_application_mac.mm b/chrome/browser/chrome_browser_application_mac.mm index aea31b0..1786f91 100644 --- a/chrome/browser/chrome_browser_application_mac.mm +++ b/chrome/browser/chrome_browser_application_mac.mm @@ -69,6 +69,11 @@ static IMP gOriginalInitIMP = NULL; if ([aReason isEqualToString:kNSMenuItemArrayBoundsCheck]) { fatal = YES; } + + NSString* const kNoWindowCheck = @"View is not in any window"; + if ([aReason isEqualToString:kNoWindowCheck]) { + fatal = YES; + } } // Dear reader: Something you just did provoked an NSException. |