diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-10 02:49:56 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-10 02:49:56 +0000 |
commit | 4c87dd507a5c2cbb95d936e9bfbaef7b00ec3f8e (patch) | |
tree | a65587500339d2dd1d28ad712fc4401aff6bb435 /media | |
parent | 4bc041dcff941529426dd849ebde305e59c494bd (diff) | |
download | chromium_src-4c87dd507a5c2cbb95d936e9bfbaef7b00ec3f8e.zip chromium_src-4c87dd507a5c2cbb95d936e9bfbaef7b00ec3f8e.tar.gz chromium_src-4c87dd507a5c2cbb95d936e9bfbaef7b00ec3f8e.tar.bz2 |
Add crash key for Mac video capture
This CL calls SetCrashKeyValue() if a video capture device is opened. This can
be used to determine if the crash involves video capture or if simply
enumerating video capture device is enough to cause a crash.
BUG=139164
Review URL: https://chromiumcodereview.appspot.com/11096030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/video/capture/mac/video_capture_device_qtkit_mac.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/video/capture/mac/video_capture_device_qtkit_mac.mm b/media/video/capture/mac/video_capture_device_qtkit_mac.mm index fc65d2e..9e0e903 100644 --- a/media/video/capture/mac/video_capture_device_qtkit_mac.mm +++ b/media/video/capture/mac/video_capture_device_qtkit_mac.mm @@ -7,6 +7,7 @@ #import <QTKit/QTKit.h> #include "base/logging.h" +#include "base/mac/crash_logging.h" #include "media/video/capture/mac/video_capture_device_mac.h" #include "media/video/capture/video_capture_device.h" #include "media/video/capture/video_capture_types.h" @@ -95,6 +96,11 @@ << [[error localizedDescription] UTF8String]; return NO; } + + // This key can be used to check if video capture code was related to a + // particular crash. + base::mac::SetCrashKeyValue(@"VideoCaptureDeviceQTKit", @"OpenedDevice"); + return YES; } else { // Remove the previously set capture device. |