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

Issue 4822002: Send malware reports when a user opts-in from the safe browsing interstitial ... (Closed)

Created:
10 years, 1 month ago by panayiotis
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Send malware reports when a user opts-in from the safe browsing interstitial page. In this first iteration, the reports are minimal, but I created a new class because I would like to expand them. Workflow: A SafeBrowsingBlockingPage is shown. A new MalwareReport object is created. The blocking page goes away, either when the user clicks proceed, go back or closed the tab. We read the user's preference, and if we have a pending report, we pass it on to the SafeBrowsingService so it can send it. Depends on: http://codereview.chromium.org/4827001/ Also relevant: http://codereview.chromium.org/5102001/ Design doc: https://docs.google.com/document/edit?id=1s-7qMjm23onV68SyqO6yi-xsfFzz4OBSOyHoV3cY8mQ&authkey=CMCF-MID BUG=60831 TEST=unit_tests,relevant browser_test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68828

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 24

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 1

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+835 lines, -35 lines) Patch
A chrome/browser/safe_browsing/malware_details.h View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/malware_details.cc View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/malware_details_unittest.cc View 1 2 3 4 5 6 1 chunk +172 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +20 lines, -10 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +41 lines, -14 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -3 lines 0 comments Download
A chrome/browser/safe_browsing/report.proto View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +44 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +57 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +135 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 3 chunks +51 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
panayiotis
10 years, 1 month ago (2010-11-12 02:37:37 UTC) #1
lzheng
+ Scott, he is working in this area. I have a rough first pass. Please ...
10 years, 1 month ago (2010-11-16 00:18:12 UTC) #2
panayiotis
Thanks Lei, I have addressed your comments. http://codereview.chromium.org/4822002/diff/13001/chrome/browser/safe_browsing/csd.proto File chrome/browser/safe_browsing/csd.proto (right): http://codereview.chromium.org/4822002/diff/13001/chrome/browser/safe_browsing/csd.proto#newcode34 chrome/browser/safe_browsing/csd.proto:34: } On ...
10 years, 1 month ago (2010-11-18 22:04:36 UTC) #3
Scott Hess - ex-Googler
Just a bunch of comments, I'm going OOT so I'm unlikely to get to LGTM. ...
10 years, 1 month ago (2010-11-23 01:59:39 UTC) #4
panayiotis
Thanks. http://codereview.chromium.org/4822002/diff/28001/chrome/browser/safe_browsing/malware_report.cc File chrome/browser/safe_browsing/malware_report.cc (right): http://codereview.chromium.org/4822002/diff/28001/chrome/browser/safe_browsing/malware_report.cc#newcode41 chrome/browser/safe_browsing/malware_report.cc:41: urls_[url] = resource; The intention is to be ...
10 years, 1 month ago (2010-11-24 22:40:15 UTC) #5
panayiotis
Kind ping... The browser test has been committed (I'm looking to make the phishing tests ...
10 years ago (2010-11-30 21:32:34 UTC) #6
lzheng
My only concern is that we should make clear the safebrowsinghit report and malwarereport are ...
10 years ago (2010-11-30 23:14:49 UTC) #7
panayiotis
Agreed, the naming was confusing. I like "MalwareDetails", I switched to that. Please have another ...
10 years ago (2010-12-01 22:34:52 UTC) #8
panayiotis
Also added a browser_test.
10 years ago (2010-12-01 23:37:10 UTC) #9
lzheng
10 years ago (2010-12-03 01:16:57 UTC) #10
LGTM 
with one nit.

http://codereview.chromium.org/4822002/diff/84002/chrome/browser/safe_browsin...
File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right):

http://codereview.chromium.org/4822002/diff/84002/chrome/browser/safe_browsin...
chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:61: LOG(INFO)
<< "ReportMalwareDetails";
Nit: You might want to get rid of these LOG(INFO)s or change to DVLOG(1) if you
really need them, to avoid unnecessary logs in output.

Powered by Google App Engine
This is Rietveld 408576698