| Index: chrome/browser/metrics/chrome_stability_metrics_provider.cc
|
| diff --git a/chrome/browser/metrics/chrome_stability_metrics_provider.cc b/chrome/browser/metrics/chrome_stability_metrics_provider.cc
|
| index f39bbd46caf00447cdeff19043f1b62e28bbe866..7f669eb91bd3167fcbc9f0aad4f625d3f3192d0c 100644
|
| --- a/chrome/browser/metrics/chrome_stability_metrics_provider.cc
|
| +++ b/chrome/browser/metrics/chrome_stability_metrics_provider.cc
|
| @@ -20,7 +20,10 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/user_metrics.h"
|
| #include "content/public/browser/web_contents.h"
|
| +
|
| +#if defined(ENABLE_EXTENSIONS)
|
| #include "extensions/browser/process_map.h"
|
| +#endif
|
|
|
| #if defined(ENABLE_PLUGINS)
|
| #include "chrome/browser/metrics/plugin_metrics_provider.h"
|
| @@ -195,9 +198,12 @@ void ChromeStabilityMetricsProvider::LogRendererCrash(
|
| content::RenderProcessHost* host,
|
| base::TerminationStatus status,
|
| int exit_code) {
|
| - bool was_extension_process =
|
| - extensions::ProcessMap::Get(host->GetBrowserContext())
|
| - ->Contains(host->GetID());
|
| + bool was_extension_process = false;
|
| +#if defined(ENABLE_EXTENSIONS)
|
| + was_extension_process =
|
| + extensions::ProcessMap::Get(host->GetBrowserContext())->Contains(
|
| + host->GetID());
|
| +#endif
|
| if (status == base::TERMINATION_STATUS_PROCESS_CRASHED ||
|
| status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION) {
|
| if (was_extension_process) {
|
|
|