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

Issue 173133004: Separate pre-classification checks for client-side malware and phishing (Closed)

Created:
6 years, 10 months ago by noé
Modified:
6 years, 9 months ago
CC:
chromium-reviews, lucasballard_google.com
Visibility:
Public.

Description

Separate pre-classification checks for client-side malware and phishing detection and enable the client-side malware feature in all channels (not just dev and canary). BUG=352782 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260171

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address Matt's comments. #

Patch Set 3 : Remove Done() method which isn't used. #

Patch Set 4 : Remove done() #

Total comments: 8

Patch Set 5 : add unit-testing #

Patch Set 6 : browse_info_ isn't always valid. #

Patch Set 7 : Fix the service unit-test. #

Total comments: 30

Patch Set 8 : Address Matt's comments. #

Total comments: 6

Patch Set 9 : More comments #

Total comments: 2

Patch Set 10 : final comments from matt. #

Patch Set 11 : Merge and fix issues in the histograms file. #

Total comments: 6

Patch Set 12 : add histogram #

Patch Set 13 : Change some of the histograms to bool histograms when appropriate. #

Total comments: 2

Patch Set 14 : Set right enum type for boolean histograms. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+604 lines, -502 lines) Patch
M chrome/browser/safe_browsing/browser_feature_extractor.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/browser_feature_extractor.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.h View 1 2 3 4 5 6 7 6 chunks +19 lines, -14 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 21 chunks +238 lines, -145 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 3 4 5 6 7 8 9 21 chunks +285 lines, -306 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service_unittest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 7 chunks +50 lines, -18 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
noé
Hi Matt, This CL splits the pre-classification checks for client-side detection in two. We want ...
6 years, 10 months ago (2014-02-19 23:54:40 UTC) #1
mattm
sorry for delay. This code is somewhat hard to follow (before too). https://codereview.chromium.org/173133004/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc ...
6 years, 10 months ago (2014-02-21 00:35:29 UTC) #2
noé
Thanks Matt, I agree that this code isn't very readable. Sorry for not making it ...
6 years, 10 months ago (2014-02-21 19:04:16 UTC) #3
mattm
Yeah, general approach seems good. https://codereview.chromium.org/173133004/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/173133004/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode486 chrome/browser/safe_browsing/client_side_detection_host.cc:486: // that except when ...
6 years, 10 months ago (2014-02-22 02:49:02 UTC) #4
noé
Sorry for the delay. Thanks for your comments Matt. Please take another look. I've added ...
6 years, 9 months ago (2014-03-14 22:21:31 UTC) #5
mattm
https://codereview.chromium.org/173133004/diff/130001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/173133004/diff/130001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode377 chrome/browser/safe_browsing/client_side_detection_host.cc:377: should_classify_for_malware_.reset(); On 2014/03/14 22:21:32, noé wrote: > On 2014/02/22 ...
6 years, 9 months ago (2014-03-18 02:19:06 UTC) #6
noé
Thanks Matt for the thorough review! Much appreciated. PTAL. n. https://codereview.chromium.org/173133004/diff/130001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/173133004/diff/130001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode377 ...
6 years, 9 months ago (2014-03-20 17:01:45 UTC) #7
mattm
https://codereview.chromium.org/173133004/diff/240001/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (left): https://codereview.chromium.org/173133004/diff/240001/chrome/browser/safe_browsing/browser_feature_extractor.cc#oldcode265 chrome/browser/safe_browsing/browser_feature_extractor.cc:265: DCHECK_EQ(0U, request->url().find("http:")); On 2014/03/20 17:01:45, noé wrote: > On ...
6 years, 9 months ago (2014-03-20 22:51:40 UTC) #8
noé
thanks, noe. https://codereview.chromium.org/173133004/diff/240001/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (left): https://codereview.chromium.org/173133004/diff/240001/chrome/browser/safe_browsing/browser_feature_extractor.cc#oldcode265 chrome/browser/safe_browsing/browser_feature_extractor.cc:265: DCHECK_EQ(0U, request->url().find("http:")); On 2014/03/20 22:51:40, mattm wrote: ...
6 years, 9 months ago (2014-03-21 00:08:38 UTC) #9
mattm
lgtm with nit https://codereview.chromium.org/173133004/diff/280001/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc File chrome/browser/safe_browsing/client_side_detection_host_unittest.cc (right): https://codereview.chromium.org/173133004/diff/280001/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc#newcode1146 chrome/browser/safe_browsing/client_side_detection_host_unittest.cc:1146: EXPECT_TRUE(Mock::VerifyAndClear(ui_manager_.get())); WaitAndCheckPreClassificationChecks already does VerifyAndClear on ...
6 years, 9 months ago (2014-03-21 01:15:22 UTC) #10
mattm
On 2014/03/21 01:15:22, mattm wrote: > lgtm with nit > > https://codereview.chromium.org/173133004/diff/280001/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc > File chrome/browser/safe_browsing/client_side_detection_host_unittest.cc ...
6 years, 9 months ago (2014-03-21 01:30:41 UTC) #11
noé
https://codereview.chromium.org/173133004/diff/280001/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc File chrome/browser/safe_browsing/client_side_detection_host_unittest.cc (right): https://codereview.chromium.org/173133004/diff/280001/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc#newcode1146 chrome/browser/safe_browsing/client_side_detection_host_unittest.cc:1146: EXPECT_TRUE(Mock::VerifyAndClear(ui_manager_.get())); On 2014/03/21 01:15:22, mattm wrote: > WaitAndCheckPreClassificationChecks already ...
6 years, 9 months ago (2014-03-21 04:32:36 UTC) #12
noé
+jar for histograms approval. thanks, n.
6 years, 9 months ago (2014-03-21 04:33:07 UTC) #13
noé
Merged with histogram changes. PTAL.
6 years, 9 months ago (2014-03-24 22:54:41 UTC) #14
noé
+asvitkine to review histogram changes. Thanks, n.
6 years, 9 months ago (2014-03-25 00:13:27 UTC) #15
Alexei Svitkine (slow)
https://codereview.chromium.org/173133004/diff/320001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/173133004/diff/320001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode92 chrome/browser/safe_browsing/client_side_detection_host.cc:92: UMA_HISTOGRAM_COUNTS("SBClientMalware.ClassificationStart", 1); Is there a plan for this to ...
6 years, 9 months ago (2014-03-25 13:51:38 UTC) #16
noé
Thanks for the feedback. Excuse my ignorance about stats collection best practices in Chrome. Thanks, ...
6 years, 9 months ago (2014-03-25 15:54:25 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/173133004/diff/320001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/173133004/diff/320001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode92 chrome/browser/safe_browsing/client_side_detection_host.cc:92: UMA_HISTOGRAM_COUNTS("SBClientMalware.ClassificationStart", 1); On 2014/03/25 15:54:25, noé wrote: > On ...
6 years, 9 months ago (2014-03-25 16:43:03 UTC) #18
noé
https://codereview.chromium.org/173133004/diff/320001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/173133004/diff/320001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode92 chrome/browser/safe_browsing/client_side_detection_host.cc:92: UMA_HISTOGRAM_COUNTS("SBClientMalware.ClassificationStart", 1); On 2014/03/25 16:43:03, Alexei Svitkine wrote: > ...
6 years, 9 months ago (2014-03-25 20:23:11 UTC) #19
Alexei Svitkine (slow)
LGTM with a final suggestion. Thanks! https://codereview.chromium.org/173133004/diff/410001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/173133004/diff/410001/tools/metrics/histograms/histograms.xml#newcode21302 tools/metrics/histograms/histograms.xml:21302: +<histogram name="SBClientMalware.UnexpectedPageId"> Probably ...
6 years, 9 months ago (2014-03-26 19:43:01 UTC) #20
noé
https://codereview.chromium.org/173133004/diff/410001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/173133004/diff/410001/tools/metrics/histograms/histograms.xml#newcode21302 tools/metrics/histograms/histograms.xml:21302: +<histogram name="SBClientMalware.UnexpectedPageId"> On 2014/03/26 19:43:02, Alexei Svitkine wrote: > ...
6 years, 9 months ago (2014-03-27 17:44:20 UTC) #21
noé
The CQ bit was checked by noelutz@chromium.org
6 years, 9 months ago (2014-03-27 17:44:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelutz@chromium.org/173133004/430001
6 years, 9 months ago (2014-03-27 17:44:53 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 22:16:51 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=289668
6 years, 9 months ago (2014-03-27 22:16:51 UTC) #25
noé
The CQ bit was checked by noelutz@chromium.org
6 years, 9 months ago (2014-03-28 16:16:26 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelutz@chromium.org/173133004/430001
6 years, 9 months ago (2014-03-28 16:16:53 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 17:01:04 UTC) #28
Message was sent while issue was closed.
Change committed as 260171

Powered by Google App Engine
This is Rietveld 408576698