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

Issue 8310014: Only send the client-side phishing model to a renderer if its profile has SafeBrowsing enabled. (Closed)

Created:
9 years, 2 months ago by Brian Ryner
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Miranda Callahan, Garrett Casto
Visibility:
Public.

Description

Only send the client-side phishing model to a renderer if its profile has SafeBrowsing enabled. BUG=99390 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106237

Patch Set 1 #

Total comments: 3

Patch Set 2 : v2 #

Patch Set 3 : v2 with merge #

Total comments: 2

Patch Set 4 : v3 #

Patch Set 5 : Add a comment as Noe suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -39 lines) Patch
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 2 2 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 4 4 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service_unittest.cc View 1 2 7 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/safe_browsing/safebrowsing_messages.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier.cc View 1 1 chunk +17 lines, -9 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Brian Ryner
9 years, 2 months ago (2011-10-17 03:17:07 UTC) #1
noelutz
http://codereview.chromium.org/8310014/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/8310014/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode222 chrome/browser/safe_browsing/client_side_detection_service.cc:222: process->Send(new SafeBrowsingMsg_SetPhishingModel(model_str_)); What if the renderer already has an ...
9 years, 2 months ago (2011-10-17 17:48:12 UTC) #2
Brian Ryner
Our current handling of turning CSD off on-the-fly isn't perfect, so I think there are ...
9 years, 2 months ago (2011-10-17 18:21:45 UTC) #3
noelutz
On Mon, Oct 17, 2011 at 11:21 AM, <bryner@chromium.org> wrote: > Our current handling of ...
9 years, 2 months ago (2011-10-17 19:23:22 UTC) #4
Brian Ryner
Please take another look.
9 years, 2 months ago (2011-10-18 00:21:22 UTC) #5
noelutz
nice. just some minor comments. Thanks, noé. http://codereview.chromium.org/8310014/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/8310014/diff/7001/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode97 chrome/browser/safe_browsing/client_side_detection_service.cc:97: SendModelToRenderers(); // ...
9 years, 2 months ago (2011-10-18 00:33:42 UTC) #6
Brian Ryner
I think these can both be answered with the same explanation. The ClientSideDetectionService is a ...
9 years, 2 months ago (2011-10-18 00:49:57 UTC) #7
mattm
Hmmm.. confusing. I thought we had already handled this with the TabContentsWrapper::UpdateSafebrowsingDetectionHost and related. I ...
9 years, 2 months ago (2011-10-18 01:26:45 UTC) #8
Brian Ryner
Agreed this is a little confusing. It might be cleaner at some point to have ...
9 years, 2 months ago (2011-10-18 22:02:23 UTC) #9
noelutz
lgtm LGTM. Nit: maybe add a comment that explains why you're reading the pref in ...
9 years, 2 months ago (2011-10-18 22:49:57 UTC) #10
mattm
lgtm
9 years, 2 months ago (2011-10-19 01:12:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/8310014/13002
9 years, 2 months ago (2011-10-19 04:24:10 UTC) #12
commit-bot: I haz the power
9 years, 2 months ago (2011-10-19 05:44:35 UTC) #13
Change committed as 106237

Powered by Google App Engine
This is Rietveld 408576698