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

Issue 7119003: Create a browser feature extractor that runs after the renderer has (Closed)

Created:
9 years, 6 months ago by noelutz
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Create a browser feature extractor that runs after the renderer has decided that a page is phishing according to the extracted features in the renderer. For now we don't use these features in the classification. We only use them on the server side. Currently, the browser feature extractor extracts a bunch of features based on the history service (e.g., has the user seen this URL before). BUG=None TEST=BrowserFeatureExtractorTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89178 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89603

Patch Set 1 #

Patch Set 2 : Add the new files #

Patch Set 3 : Fix warning message: comparing int with uint. #

Patch Set 4 : More testing warnings #

Total comments: 2

Patch Set 5 : Address Pawel's comments #

Total comments: 16

Patch Set 6 : Address Matt's and Pawel's comments #

Total comments: 14

Patch Set 7 : Address Garrett's comments. #

Total comments: 21

Patch Set 8 : Address Brian's comments. #

Patch Set 9 : merge #

Patch Set 10 : Merge #

Patch Set 11 : Address memory leaks and issues with the profile going away. #

Patch Set 12 : Second try. #

Total comments: 6

Patch Set 13 : Change host to detect when the tab goes away. #

Patch Set 14 : Add missing delete #

Total comments: 4

Patch Set 15 : Remove unnecessary header file #

Patch Set 16 : Fix unittest #

Patch Set 17 : Add new files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+725 lines, -23 lines) Patch
A chrome/browser/safe_browsing/browser_feature_extractor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +161 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/browser_feature_extractor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 1 chunk +304 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc View 1 2 3 4 5 6 7 11 16 1 chunk +163 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +14 lines, -2 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 5 chunks +35 lines, -12 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 10 11 12 13 14 15 11 chunks +39 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 5 6 7 8 9 11 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
noelutz
9 years, 6 months ago (2011-06-08 00:08:35 UTC) #1
Paweł Hajdan Jr.
Drive-by with a testing comment. http://codereview.chromium.org/7119003/diff/4002/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc File chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc (right): http://codereview.chromium.org/7119003/diff/4002/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc#newcode147 chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc:147: // We have to ...
9 years, 6 months ago (2011-06-08 08:54:46 UTC) #2
noelutz
Thanks, noe. http://codereview.chromium.org/7119003/diff/4002/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc File chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc (right): http://codereview.chromium.org/7119003/diff/4002/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc#newcode147 chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc:147: // We have to call Run() twice ...
9 years, 6 months ago (2011-06-08 16:39:30 UTC) #3
mattm
http://codereview.chromium.org/7119003/diff/4003/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/4003/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode30 chrome/browser/safe_browsing/browser_feature_extractor.cc:30: const char kHttpsHostVisitCount[] = "HttpsHostVisitCount="; Why do these ones ...
9 years, 6 months ago (2011-06-08 23:18:18 UTC) #4
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM, thanks! http://codereview.chromium.org/7119003/diff/4003/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc File chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc (right): http://codereview.chromium.org/7119003/diff/4003/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc#newcode30 chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc:30: : ...
9 years, 6 months ago (2011-06-09 09:13:09 UTC) #5
noelutz
Thanks. Please take another look. noé. http://codereview.chromium.org/7119003/diff/4003/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/4003/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode30 chrome/browser/safe_browsing/browser_feature_extractor.cc:30: const char kHttpsHostVisitCount[] ...
9 years, 6 months ago (2011-06-09 19:21:39 UTC) #6
mattm
lgtm
9 years, 6 months ago (2011-06-09 19:55:56 UTC) #7
gcasto (DO NOT USE)
http://codereview.chromium.org/7119003/diff/8002/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/8002/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode25 chrome/browser/safe_browsing/browser_feature_extractor.cc:25: const char kUrlHistoryVisitCount[] = "UrlHistoryVisitCount"; It might be nice ...
9 years, 6 months ago (2011-06-09 21:39:55 UTC) #8
noelutz
Please take another look. thanks, noé. http://codereview.chromium.org/7119003/diff/8002/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/8002/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode25 chrome/browser/safe_browsing/browser_feature_extractor.cc:25: const char kUrlHistoryVisitCount[] ...
9 years, 6 months ago (2011-06-09 22:52:08 UTC) #9
Brian Ryner
Looks nice. Just a few comments, mostly minor. http://codereview.chromium.org/7119003/diff/9008/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/9008/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode62 chrome/browser/safe_browsing/browser_feature_extractor.cc:62: DCHECK(GetHistoryService(&history) ...
9 years, 6 months ago (2011-06-10 04:45:10 UTC) #10
gcasto (DO NOT USE)
LGTM
9 years, 6 months ago (2011-06-10 20:28:17 UTC) #11
noelutz
http://codereview.chromium.org/7119003/diff/9008/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/9008/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode62 chrome/browser/safe_browsing/browser_feature_extractor.cc:62: DCHECK(GetHistoryService(&history) || pending_queries_.size() == 0); On 2011/06/10 04:45:10, Brian ...
9 years, 6 months ago (2011-06-14 01:10:10 UTC) #12
Brian Ryner
LGTM http://codereview.chromium.org/7119003/diff/9008/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/9008/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode286 chrome/browser/safe_browsing/browser_feature_extractor.cc:286: *history = tab_->profile()->GetHistoryService(Profile::EXPLICIT_ACCESS); On 2011/06/14 01:10:10, noelutz wrote: ...
9 years, 6 months ago (2011-06-14 01:25:15 UTC) #13
commit-bot: I haz the power
Try job failure for 7119003-11003 on linux_clang for step compile: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=2590
9 years, 6 months ago (2011-06-14 20:33:59 UTC) #14
commit-bot: I haz the power
Failed to apply the patch. Adding chrome/browser/safe_browsing/browser_feature_extractor.cc Adding chrome/browser/safe_browsing/browser_feature_extractor.h Adding chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc Sending chrome/browser/safe_browsing/client_side_detection_host.cc Sending chrome/browser/safe_browsing/client_side_detection_host.h ...
9 years, 6 months ago (2011-06-15 08:42:08 UTC) #15
M-A Ruel
On 2011/06/15 08:42:08, I haz the power (commit-bot) wrote: > Failed to apply the patch. ...
9 years, 6 months ago (2011-06-15 12:42:13 UTC) #16
commit-bot: I haz the power
Change committed as 89178
9 years, 6 months ago (2011-06-15 13:32:26 UTC) #17
noelutz
Fixed the valgrind issues (which were really bugs in my code). Please take another look. ...
9 years, 6 months ago (2011-06-15 22:01:28 UTC) #18
mattm
http://codereview.chromium.org/7119003/diff/22004/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/22004/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode17 chrome/browser/safe_browsing/browser_feature_extractor.cc:17: #include "content/common/notification_details.h" Could include of notification_details be omitted? http://codereview.chromium.org/7119003/diff/22004/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode18 ...
9 years, 6 months ago (2011-06-15 22:34:12 UTC) #19
noelutz
Thanks. Please take another look. noe. http://codereview.chromium.org/7119003/diff/22004/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/22004/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode17 chrome/browser/safe_browsing/browser_feature_extractor.cc:17: #include "content/common/notification_details.h" On ...
9 years, 6 months ago (2011-06-15 22:39:24 UTC) #20
mattm
http://codereview.chromium.org/7119003/diff/24001/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/24001/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode20 chrome/browser/safe_browsing/browser_feature_extractor.cc:20: #include "content/browser/tab_contents/navigation_controller.h" unused now? http://codereview.chromium.org/7119003/diff/24001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/7119003/diff/24001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode275 ...
9 years, 6 months ago (2011-06-15 23:22:39 UTC) #21
noelutz
http://codereview.chromium.org/7119003/diff/24001/chrome/browser/safe_browsing/browser_feature_extractor.cc File chrome/browser/safe_browsing/browser_feature_extractor.cc (right): http://codereview.chromium.org/7119003/diff/24001/chrome/browser/safe_browsing/browser_feature_extractor.cc#newcode20 chrome/browser/safe_browsing/browser_feature_extractor.cc:20: #include "content/browser/tab_contents/navigation_controller.h" On 2011/06/15 23:22:39, mattm wrote: > unused ...
9 years, 6 months ago (2011-06-16 17:01:39 UTC) #22
mattm
thanks, LGTM
9 years, 6 months ago (2011-06-16 20:28:00 UTC) #23
Brian Ryner
LGTM
9 years, 6 months ago (2011-06-16 20:45:39 UTC) #24
commit-bot: I haz the power
9 years, 6 months ago (2011-06-18 17:10:58 UTC) #25
Change committed as 89603

Powered by Google App Engine
This is Rietveld 408576698