Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1131)

Issue 2631583002: Trim version and extraneus parts from AntiVirus product names. (Closed)

Created:
3 years, 11 months ago by Will Harris
Modified:
3 years, 11 months ago
Reviewers:
rkaplow
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Trim version and extraneus parts from AntiVirus product names. Some AV products include their version in the product name in WMI which makes maintaining the list of hashes of product names onerous. Therefore, trim anything that looks like a version, along with trailing spaces. BUG=615154 TEST=unit_tests --gtest_filter=AntiVirusMetricsProvider* Review-Url: https://codereview.chromium.org/2631583002 Cr-Commit-Position: refs/heads/master@{#443594} Committed: https://chromium.googlesource.com/chromium/src/+/da07d58a5d041395d3d6317ab3aef31c0087285e

Patch Set 1 #

Total comments: 7

Patch Set 2 : tweak algorithm. add comment. #

Total comments: 2

Patch Set 3 : remove unneeded code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -0 lines) Patch
M chrome/browser/metrics/antivirus_metrics_provider_win.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/metrics/antivirus_metrics_provider_win.cc View 1 2 4 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/metrics/antivirus_metrics_provider_win_unittest.cc View 1 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Will Harris
PTAL Companion code in g3 is cl/144374105
3 years, 11 months ago (2017-01-12 23:10:34 UTC) #3
rkaplow
https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc File chrome/browser/metrics/antivirus_metrics_provider_win.cc (right): https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc#newcode72 chrome/browser/metrics/antivirus_metrics_provider_win.cc:72: return true; shouldn't this not return right away? i.e. ...
3 years, 11 months ago (2017-01-12 23:18:57 UTC) #4
Will Harris
WDYT? https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc File chrome/browser/metrics/antivirus_metrics_provider_win.cc (right): https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc#newcode72 chrome/browser/metrics/antivirus_metrics_provider_win.cc:72: return true; On 2017/01/12 23:18:56, rkaplow wrote: > ...
3 years, 11 months ago (2017-01-12 23:23:59 UTC) #5
Will Harris
https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc File chrome/browser/metrics/antivirus_metrics_provider_win.cc (right): https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc#newcode72 chrome/browser/metrics/antivirus_metrics_provider_win.cc:72: return true; On 2017/01/12 23:23:59, Will Harris wrote: > ...
3 years, 11 months ago (2017-01-12 23:27:05 UTC) #6
rkaplow
On 2017/01/12 23:23:59, Will Harris wrote: > WDYT? > > https://codereview.chromium.org/2631583002/diff/1/chrome/browser/metrics/antivirus_metrics_provider_win.cc > File chrome/browser/metrics/antivirus_metrics_provider_win.cc (right): ...
3 years, 11 months ago (2017-01-12 23:29:13 UTC) #7
Will Harris
I am thinking of simplifying it to just bool ShouldFilterPart(const std::string& str) { if (str.empty()) ...
3 years, 11 months ago (2017-01-12 23:32:05 UTC) #8
rkaplow
Seems reasonable. On Thu, Jan 12, 2017 at 6:32 PM, <wfh@chromium.org> wrote: > I am ...
3 years, 11 months ago (2017-01-12 23:33:55 UTC) #9
Will Harris
PTAL I think I'm happy with this. It doesn't change the g3 CL at all. ...
3 years, 11 months ago (2017-01-12 23:39:06 UTC) #10
rkaplow
lgtm https://codereview.chromium.org/2631583002/diff/20001/chrome/browser/metrics/antivirus_metrics_provider_win.cc File chrome/browser/metrics/antivirus_metrics_provider_win.cc (right): https://codereview.chromium.org/2631583002/diff/20001/chrome/browser/metrics/antivirus_metrics_provider_win.cc#newcode65 chrome/browser/metrics/antivirus_metrics_provider_win.cc:65: if (str.empty()) don't think this is needed
3 years, 11 months ago (2017-01-12 23:44:27 UTC) #11
Will Harris
Thanks for review I'd wait to commit this until the g3 side with the new ...
3 years, 11 months ago (2017-01-12 23:48:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2631583002/40001
3 years, 11 months ago (2017-01-13 16:41:21 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 17:27:58 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/da07d58a5d041395d3d6317ab3ae...

Powered by Google App Engine
This is Rietveld 408576698