| Index: chrome/browser/chrome_browser_field_trials.cc
|
| diff --git a/chrome/browser/chrome_browser_field_trials.cc b/chrome/browser/chrome_browser_field_trials.cc
|
| index 816b9222d7ddf8c5acbf3a472a25ff7123f41577..ad9939d47e99b62449f1ab507730a4b2809e7bf5 100644
|
| --- a/chrome/browser/chrome_browser_field_trials.cc
|
| +++ b/chrome/browser/chrome_browser_field_trials.cc
|
| @@ -23,6 +23,7 @@
|
| #include "chrome/common/channel_info.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "components/metrics/file_metrics_provider.h"
|
| #include "components/metrics/metrics_pref_names.h"
|
| #include "components/variations/variations_associated_data.h"
|
|
|
| @@ -80,6 +81,12 @@ void InstantiatePersistentHistograms() {
|
| active_file, kAllocSize, kAllocId,
|
| ChromeMetricsServiceClient::kBrowserMetricsName);
|
| result = MAPPED_FILE_SUCCESS;
|
| + // Some configurations don't return unreported metrics from the previous
|
| + // run (otherwise known as "stability metrics").
|
| + std::string unreported = variations::GetVariationParamValueByFeature(
|
| + base::kPersistentHistogramsFeature, "send_unreported_metrics");
|
| + metrics::FileMetricsProvider::set_stability_metrics_enabled(
|
| + unreported != "no");
|
| } else if (storage == "LocalMemory") {
|
| // Use local memory for storage even though it will not persist across
|
| // an unclean shutdown.
|
|
|