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

Issue 6398001: Run pre-classification checks in the browser before starting client-side phishing detection. (Closed)

Created:
9 years, 11 months ago by Brian Ryner
Modified:
9 years, 7 months ago
Reviewers:
jam, lzheng, noelutz
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, chrome-anti-phishing_googlegroups.com
Visibility:
Public.

Description

Run pre-classification checks in the browser before starting client-side phishing detection. This CL just adds a framework for running these checks, and adjusts the renderer-side logic to delay phishing classification until the browser has sent an IPC signaling that it should run. Future CL's will add the actual checks, which will include a whitelist lookup, intranet hostname checks, and per-day ping limit. BUG=none TEST=updated existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74698

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added a browser-side test for pre-classification checks #

Patch Set 3 : Fix switch/case formatting #

Total comments: 6

Patch Set 4 : Merge to trunk and address review comments #

Total comments: 8

Patch Set 5 : Address Noe's review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -71 lines) Patch
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 5 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 4 4 chunks +104 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service_unittest.cc View 1 2 3 4 2 chunks +79 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.h View 1 2 3 2 chunks +33 lines, -11 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 3 6 chunks +91 lines, -53 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 2 3 10 chunks +71 lines, -6 lines 0 comments Download
M chrome/renderer/safe_browsing/render_view_fake_resources_test.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/render_view_fake_resources_test.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Brian Ryner
This may not be quite ready to go yet, but I'm hoping to get some ...
9 years, 11 months ago (2011-01-26 00:49:15 UTC) #1
noelutz
Very nice. Just a few minor comments. Thanks, noe. http://codereview.chromium.org/6398001/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/6398001/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode61 chrome/browser/safe_browsing/client_side_detection_service.cc:61: ...
9 years, 11 months ago (2011-01-26 01:31:20 UTC) #2
lzheng
I didn't dig into details of this CL but looked at the higher level since ...
9 years, 11 months ago (2011-01-27 18:31:27 UTC) #3
Brian Ryner
I got the browser-side test working, so this is ready for review now. Thanks, Brian ...
9 years, 10 months ago (2011-02-01 21:45:45 UTC) #4
Brian Ryner
Adding John to take a look at the RenderView additions.
9 years, 10 months ago (2011-02-02 01:04:17 UTC) #5
jam
On 2011/02/02 01:04:17, Brian Ryner wrote: > Adding John to take a look at the ...
9 years, 10 months ago (2011-02-03 19:38:36 UTC) #6
lzheng
Good work. http://codereview.chromium.org/6398001/diff/9001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/6398001/diff/9001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode216 chrome/browser/safe_browsing/client_side_detection_service.cc:216: controller->tab_contents()); what's the life-cycle of controller->tab_contents()? Will ...
9 years, 10 months ago (2011-02-04 20:05:22 UTC) #7
Brian Ryner
Please have another look. http://codereview.chromium.org/6398001/diff/9001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/6398001/diff/9001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode216 chrome/browser/safe_browsing/client_side_detection_service.cc:216: controller->tab_contents()); On 2011/02/04 20:05:22, lzheng ...
9 years, 10 months ago (2011-02-10 01:12:52 UTC) #8
noelutz
I like it. Just a couple minor questions mostly to make sure I understand the ...
9 years, 10 months ago (2011-02-10 01:36:07 UTC) #9
lzheng
Did you get rid of the changes in render_view.h and render_view.cc intensionally? On 2011/02/10 01:12:52, ...
9 years, 10 months ago (2011-02-10 20:37:36 UTC) #10
Brian Ryner
http://codereview.chromium.org/6398001/diff/13001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/6398001/diff/13001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode85 chrome/browser/safe_browsing/client_side_detection_service.cc:85: &ShouldClassifyUrlRequest::Finish)); On 2011/02/10 01:36:07, noelutz wrote: > I just ...
9 years, 10 months ago (2011-02-10 21:15:20 UTC) #11
Brian Ryner
On 2011/02/10 20:37:36, lzheng wrote: > Did you get rid of the changes in render_view.h ...
9 years, 10 months ago (2011-02-10 21:17:55 UTC) #12
Brian Ryner
This change removes the back/forward check, adds the comment Noe suggested, and adds a test ...
9 years, 10 months ago (2011-02-11 00:52:10 UTC) #13
lzheng
9 years, 10 months ago (2011-02-11 17:55:43 UTC) #14
LGTM.
On 2011/02/11 00:52:10, Brian Ryner wrote:
> This change removes the back/forward check, adds the comment Noe suggested,
and
> adds a test for in-page navigation as I mentioned above.  Please take another
> look.

Powered by Google App Engine
This is Rietveld 408576698