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

Issue 7583007: Add "enabled" state to the ClientSideDetectionService. (Closed)

Created:
9 years, 4 months ago by Joao da Silva
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Miranda Callahan, Garrett Casto
Visibility:
Public.

Description

Add "enabled" state to the ClientSideDetectionService. The service won't download the model nor report phishing URLs when disabled. It is only enabled if it exists (only when client side reporting is not disabled), and at least one profile has safe browsing enabled. BUG=88661 TEST=SafeBrowsing and phishing detection work as before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97847

Patch Set 1 #

Patch Set 2 : More tests, fixed other tests, small changes #

Patch Set 3 : nit: removed unused code #

Total comments: 8

Patch Set 4 : Using StrictMock, rebased #

Patch Set 5 : Reviewed, rebased #

Patch Set 6 : Nit #

Patch Set 7 : Fixed shutdown crash, SBS now owns CSDS #

Patch Set 8 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -91 lines) Patch
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 6 chunks +12 lines, -44 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 5 chunks +25 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 4 5 5 chunks +57 lines, -22 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service_unittest.cc View 1 2 3 4 5 6 7 chunks +87 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 6 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 6 chunks +35 lines, -14 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 5 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Joao da Silva
@shess: Please review.
9 years, 4 months ago (2011-08-08 16:43:50 UTC) #1
Joao da Silva
@shess: Please review. (sorry for the other email, hit enter too soon) @mattm, @mirandac: FYI. ...
9 years, 4 months ago (2011-08-08 16:45:47 UTC) #2
mattm
http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode111 chrome/browser/safe_browsing/client_side_detection_service.cc:111: // we have to invoke the callback. Hm, are ...
9 years, 4 months ago (2011-08-08 21:59:46 UTC) #3
mirandac
Looks good to me for closing 88661 -- thank you! On Mon, Aug 8, 2011 ...
9 years, 4 months ago (2011-08-09 08:06:53 UTC) #4
Joao da Silva
@mattm: thanks for reviewing, please see the comment below. http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode111 chrome/browser/safe_browsing/client_side_detection_service.cc:111: ...
9 years, 4 months ago (2011-08-09 09:16:12 UTC) #5
mattm
http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode111 chrome/browser/safe_browsing/client_side_detection_service.cc:111: // we have to invoke the callback. On 2011/08/09 ...
9 years, 4 months ago (2011-08-10 23:38:26 UTC) #6
Scott Hess - ex-Googler
I don't have anything to add - it looks right, but I'm not entirely confident ...
9 years, 4 months ago (2011-08-10 23:54:15 UTC) #7
Joao da Silva
@mattm: reviewed, please have another look. Thanks! http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/7583007/diff/4001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode111 chrome/browser/safe_browsing/client_side_detection_service.cc:111: // we ...
9 years, 4 months ago (2011-08-11 11:51:50 UTC) #8
mattm
Thanks. Did you see the SafeBrowsingServiceTest.StartAndStop failure on the Mac try bot? On 2011/08/11 11:51:50, ...
9 years, 4 months ago (2011-08-11 21:59:29 UTC) #9
Joao da Silva
@mattm: it was a nasty shutdown crash, it's been fixed. Please have another look, thank ...
9 years, 4 months ago (2011-08-12 15:31:10 UTC) #10
mattm
LGTM, thanks!
9 years, 4 months ago (2011-08-12 21:36:33 UTC) #11
Brian Ryner
Noe, do you want to take a look at this too?
9 years, 4 months ago (2011-08-13 00:34:40 UTC) #12
noelutz
On 2011/08/13 00:34:40, Brian Ryner wrote: > Noe, do you want to take a look ...
9 years, 4 months ago (2011-08-13 01:24:10 UTC) #13
noelutz
LGTM other than that Thanks, noe. On 2011/08/13 01:24:10, noelutz wrote: > On 2011/08/13 00:34:40, ...
9 years, 4 months ago (2011-08-13 01:24:25 UTC) #14
Joao da Silva
On 2011/08/13 01:24:10, noelutz wrote: > nit: you might want to change > chrome/browser/ui/tab_contents/tab_contents_wrapper.cc where ...
9 years, 4 months ago (2011-08-16 11:01:50 UTC) #15
Joao da Silva
@lzheng: since @shess seems to be away, can you give this an owners approval?
9 years, 4 months ago (2011-08-16 11:06:57 UTC) #16
noelutz
LGTM On 2011/08/16 11:01:50, Joao da Silva wrote: > On 2011/08/13 01:24:10, noelutz wrote: > ...
9 years, 4 months ago (2011-08-16 14:56:33 UTC) #17
Brian Ryner
Is this ready to go? Matt suggested that I wait on submitting http://codereview.chromium.org/7635010/ until this ...
9 years, 4 months ago (2011-08-22 21:19:00 UTC) #18
Scott Hess - ex-Googler
LGTM. Unfortunately, lzheng@chromium.org has left the building. I should go looking for a replacement victim.
9 years, 4 months ago (2011-08-22 21:37:33 UTC) #19
commit-bot: I haz the power
9 years, 4 months ago (2011-08-23 12:56:10 UTC) #20
Change committed as 97847

Powered by Google App Engine
This is Rietveld 408576698