Index: chrome/browser/extensions/api/metrics_private/metrics_private_api.cc |
diff --git a/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc b/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc |
index 0b344442580e4bc321f4dc996a41131c8b9a4a20..a74618e65379e0af5d6fbaefca5d7e6da85b04f9 100644 |
--- a/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc |
+++ b/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc |
@@ -9,6 +9,7 @@ |
#include "base/metrics/field_trial.h" |
#include "base/metrics/histogram.h" |
#include "base/metrics/sparse_histogram.h" |
+#include "chrome/browser/browser_process.h" |
#include "chrome/browser/metrics/metrics_service.h" |
#include "chrome/common/extensions/api/metrics_private.h" |
#include "components/variations/variations_associated_data.h" |
@@ -40,8 +41,9 @@ const size_t kMaxBuckets = 10000; // We don't ever want more than these many |
} // namespace |
bool MetricsPrivateGetIsCrashReportingEnabledFunction::RunSync() { |
- SetResult(new base::FundamentalValue( |
- MetricsServiceHelper::IsCrashReportingEnabled())); |
+ SetResult( |
+ new base::FundamentalValue(MetricsServiceHelper::IsCrashReportingEnabled( |
+ g_browser_process->local_state()))); |
return true; |
} |