| Index: chrome/browser/metrics/antivirus_metrics_provider_win.h
|
| diff --git a/chrome/browser/metrics/antivirus_metrics_provider_win.h b/chrome/browser/metrics/antivirus_metrics_provider_win.h
|
| index 0bf86852e9c5bf28e4a0f36f110eecd39837b1ef..272a87d2fcde6a29bbde08501e57e79cdbb33e97 100644
|
| --- a/chrome/browser/metrics/antivirus_metrics_provider_win.h
|
| +++ b/chrome/browser/metrics/antivirus_metrics_provider_win.h
|
| @@ -85,6 +85,10 @@ class AntiVirusMetricsProvider : public metrics::MetricsProvider {
|
|
|
| static std::vector<AvProduct> GetAntiVirusProductsOnFileThread();
|
|
|
| + // Removes anything extraneous from the end of the product name such as
|
| + // versions, years, or anything containing numbers to make it more constant.
|
| + static std::string TrimVersionOfAvProductName(const std::string& av_product);
|
| +
|
| // Called when metrics are done being gathered from the FILE thread.
|
| // |done_callback| is the callback that should be called once all metrics are
|
| // gathered.
|
| @@ -102,6 +106,8 @@ class AntiVirusMetricsProvider : public metrics::MetricsProvider {
|
| base::WeakPtrFactory<AntiVirusMetricsProvider> weak_ptr_factory_;
|
|
|
| FRIEND_TEST_ALL_PREFIXES(AntiVirusMetricsProviderTest, GetMetricsFullName);
|
| + FRIEND_TEST_ALL_PREFIXES(AntiVirusMetricsProviderSimpleTest,
|
| + StripProductVersion);
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AntiVirusMetricsProvider);
|
| };
|
|
|