OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/metrics/chrome_stability_metrics_provider.h" | 5 #include "chrome/browser/metrics/chrome_stability_metrics_provider.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/metrics/sparse_histogram.h" | 11 #include "base/metrics/sparse_histogram.h" |
| 12 #include "build/build_config.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
14 #include "content/public/browser/child_process_data.h" | 15 #include "content/public/browser/child_process_data.h" |
15 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
16 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
17 | 18 |
18 #if defined(ENABLE_EXTENSIONS) | 19 #if defined(ENABLE_EXTENSIONS) |
19 #include "extensions/browser/process_map.h" | 20 #include "extensions/browser/process_map.h" |
20 #endif | 21 #endif |
21 | 22 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int exit_code) { | 159 int exit_code) { |
159 #if defined(ENABLE_PLUGINS) | 160 #if defined(ENABLE_PLUGINS) |
160 // Exclude plugin crashes from the count below because we report them via | 161 // Exclude plugin crashes from the count below because we report them via |
161 // a separate UMA metric. | 162 // a separate UMA metric. |
162 if (PluginMetricsProvider::IsPluginProcess(data.process_type)) | 163 if (PluginMetricsProvider::IsPluginProcess(data.process_type)) |
163 return; | 164 return; |
164 #endif | 165 #endif |
165 | 166 |
166 helper_.BrowserChildProcessCrashed(); | 167 helper_.BrowserChildProcessCrashed(); |
167 } | 168 } |
OLD | NEW |