diff options
author | antonm@chromium.org <antonm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 12:41:05 +0000 |
---|---|---|
committer | antonm@chromium.org <antonm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 12:41:05 +0000 |
commit | 3231c2ecdbba6e6978b988f47a495f9bb45462b9 (patch) | |
tree | 133c6c0d2eb43b5028782fd177cfb27ede8d6953 /chrome/common/child_process_logging_mac.mm | |
parent | 5b2dd5d8878c4d825fd659b580e4f57096673772 (diff) | |
download | chromium_src-3231c2ecdbba6e6978b988f47a495f9bb45462b9.zip chromium_src-3231c2ecdbba6e6978b988f47a495f9bb45462b9.tar.gz chromium_src-3231c2ecdbba6e6978b988f47a495f9bb45462b9.tar.bz2 |
Add number of tabs opened in the process to crash meta data.
Review URL: http://codereview.chromium.org/3285002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_logging_mac.mm')
-rw-r--r-- | chrome/common/child_process_logging_mac.mm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/child_process_logging_mac.mm b/chrome/common/child_process_logging_mac.mm index 04f4ca4..62cb122 100644 --- a/chrome/common/child_process_logging_mac.mm +++ b/chrome/common/child_process_logging_mac.mm @@ -24,6 +24,7 @@ const char *kGPUDeviceIdParamName = "devid"; const char *kGPUDriverVersionParamName = "driver"; const char *kGPUPixelShaderVersionParamName = "psver"; const char *kGPUVertexShaderVersionParamName = "vsver"; +const char *kNumberOfViews = "num-views"; static SetCrashKeyValueFuncPtr g_set_key_func; static ClearCrashKeyValueFuncPtr g_clear_key_func; @@ -144,4 +145,17 @@ void SetGpuInfo(const GPUInfo& gpu_info) { SetGpuInfoImpl(gpu_info, g_set_key_func); } + +void SetNumberOfViewsImpl(int number_of_views, + SetCrashKeyValueFuncPtr set_key_func) { + NSString *key = [NSString stringWithUTF8String:kNumberOfViews]; + NSString *value = [NSString stringWithFormat:@"%d", number_of_views]; + set_key_func(key, value); +} + +void SetNumberOfViews(int number_of_views) { + if (g_set_key_func) + SetNumberOfViewsImpl(number_of_views, g_set_key_func); +} + } // namespace child_process_logging |