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

Issue 6014003: Intergration of the client-side phishing detection. (Closed)

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

Description

Intergration of the client-side phishing detection. If the client-side phishing detection classifies a page as phishing it will send back a ping to Google to verify whether or not the page is really phishing. If the server also classifies the site as phishing we may show a phishing interstitial if it is enabled. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75299

Patch Set 1 #

Patch Set 2 : Polish #

Patch Set 3 : Fix unittest #

Patch Set 4 : Remove CsdClient as tab observer no matter what. #

Patch Set 5 : Sync. #

Total comments: 17

Patch Set 6 : Refactor to follow new delegate pattern. #

Patch Set 7 : Add unit tests for the new class. #

Patch Set 8 : Dont DCHECK because some unit tests are failing. #

Total comments: 54

Patch Set 9 : Address everyones comments #

Patch Set 10 : Merge #

Patch Set 11 : Remove comment #

Total comments: 12

Patch Set 12 : Address Brian's comments. #

Patch Set 13 : Sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+637 lines, -35 lines) Patch
M base/task.h View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M base/tuple.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -8 lines 0 comments Download
A chrome/browser/safe_browsing/client_side_detection_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/client_side_detection_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +162 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +296 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 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 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -7 lines 0 comments Download
A chrome/common/safebrowsing_messages.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/common/safebrowsing_messages.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
noelutz
I'm not sure why this CL didn't get sent out earlier. Anyways. I merged in ...
9 years, 11 months ago (2011-01-15 00:32:34 UTC) #1
Brian Ryner
Looks pretty good to me overall, just some minor comments. http://codereview.chromium.org/6014003/diff/7001/chrome/browser/renderer_host/render_view_host_delegate.h File chrome/browser/renderer_host/render_view_host_delegate.h (right): http://codereview.chromium.org/6014003/diff/7001/chrome/browser/renderer_host/render_view_host_delegate.h#newcode759 ...
9 years, 11 months ago (2011-01-20 23:36:40 UTC) #2
lzheng
http://codereview.chromium.org/6014003/diff/7001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/6014003/diff/7001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode47 chrome/browser/safe_browsing/client_side_detection_service.cc:47: void CsdClient::OnUrlCheckResult(const GURL& url, I don't think this is ...
9 years, 11 months ago (2011-01-25 00:43:43 UTC) #3
noelutz
Hi there, I refactored the code to use the new tab contents delegate class. Please ...
9 years, 10 months ago (2011-02-10 01:16:23 UTC) #4
Brian Ryner
Looks nice overall, I like the refactoring. http://codereview.chromium.org/6014003/diff/21001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (left): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/renderer_host/render_view_host.cc#oldcode1672 chrome/browser/renderer_host/render_view_host.cc:1672: void RenderViewHost::OnDetectedPhishingSite(const ...
9 years, 10 months ago (2011-02-11 01:30:39 UTC) #5
lzheng
http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode102 chrome/browser/safe_browsing/client_side_detection_host.cc:102: // the SafeBrowsing service class. I will be happy ...
9 years, 10 months ago (2011-02-11 19:39:42 UTC) #6
jam
http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.h File chrome/browser/safe_browsing/client_side_detection_host.h (right): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.h#newcode50 chrome/browser/safe_browsing/client_side_detection_host.h:50: // Handles the IPC that is sent from the ...
9 years, 10 months ago (2011-02-15 18:54:53 UTC) #7
noelutz
Thanks for your comments. Please take another look. noe. http://codereview.chromium.org/6014003/diff/21001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (left): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/renderer_host/render_view_host.cc#oldcode1672 chrome/browser/renderer_host/render_view_host.cc:1672: ...
9 years, 10 months ago (2011-02-15 23:00:55 UTC) #8
jam
lgtm with the one nit http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.h File chrome/browser/safe_browsing/client_side_detection_host.h (right): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.h#newcode50 chrome/browser/safe_browsing/client_side_detection_host.h:50: // Handles the IPC ...
9 years, 10 months ago (2011-02-15 23:34:42 UTC) #9
lzheng
LGTM http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode102 chrome/browser/safe_browsing/client_side_detection_host.cc:102: // the SafeBrowsing service class. Download doesn't use ...
9 years, 10 months ago (2011-02-16 19:09:31 UTC) #10
noelutz
http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode102 chrome/browser/safe_browsing/client_side_detection_host.cc:102: // the SafeBrowsing service class. On 2011/02/16 19:09:32, lzheng ...
9 years, 10 months ago (2011-02-16 21:24:43 UTC) #11
lzheng1
On Wed, Feb 16, 2011 at 1:24 PM, <noelutz@google.com> wrote: > > > http://codereview.chromium.org/6014003/diff/21001/chrome/browser/safe_browsing/client_side_detection_host.cc > ...
9 years, 10 months ago (2011-02-16 21:59:03 UTC) #12
Brian Ryner
Looks nice, just a few minor comments http://codereview.chromium.org/6014003/diff/42001/chrome/browser/safe_browsing/client_side_detection_host.h File chrome/browser/safe_browsing/client_side_detection_host.h (right): http://codereview.chromium.org/6014003/diff/42001/chrome/browser/safe_browsing/client_side_detection_host.h#newcode10 chrome/browser/safe_browsing/client_side_detection_host.h:10: #include "base/gtest_prod_util.h" ...
9 years, 10 months ago (2011-02-16 22:37:10 UTC) #13
noelutz
Thanks. Please take a final look. noe. http://codereview.chromium.org/6014003/diff/42001/chrome/browser/safe_browsing/client_side_detection_host.h File chrome/browser/safe_browsing/client_side_detection_host.h (right): http://codereview.chromium.org/6014003/diff/42001/chrome/browser/safe_browsing/client_side_detection_host.h#newcode10 chrome/browser/safe_browsing/client_side_detection_host.h:10: #include "base/gtest_prod_util.h" ...
9 years, 10 months ago (2011-02-16 23:22:35 UTC) #14
Brian Ryner
9 years, 10 months ago (2011-02-17 04:51:29 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698