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

Issue 2450993003: Componentize safe_browsing [1]: create component, move messages, constants and switches. (Closed)

Created:
4 years, 1 month ago by timvolodine
Modified:
4 years ago
CC:
chromium-reviews, grt+watch_chromium.org, Nate Fischer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize safe_browsing [1]: create component, move messages, constants and switches. Rationale: Current safe browsing code lives in the chrome/ layer, but we want to make it available in WebView as well (at least the relevant parts of it). Hence this effort of making a safe browsing component. In this patch: - move IPCs (spellcheck_messages) + add dedicated generator - isolate and move safe browsing specific constants - isolate and move safe browsing specific switches - remove a few unused includes Note: To reduce the number of components and keep everything related in one place the idea is to move the code currently living in components/safe_browsing_db/ to this safe_browsing/ component in the future. BUG=488675 TBR=brettw@chromium.org Committed: https://crrev.com/f30c94f1fa39ad0467a31ff99e7acc02142e6fa6 Cr-Commit-Position: refs/heads/master@{#435635}

Patch Set 1 #

Patch Set 2 : actually add the component files #

Patch Set 3 : fix url dependencies #

Patch Set 4 : fix compile #

Patch Set 5 : more compile fixes #

Patch Set 6 : rebase + more fixes #

Total comments: 6

Patch Set 7 : rebase #

Patch Set 8 : address Nathan's comments #

Total comments: 5

Patch Set 9 : rebase #

Patch Set 10 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -136 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_model_loader.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/threat_details.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/threat_details_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/safe_browsing/safebrowsing_messages.h View 1 chunk +0 lines, -65 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/safe_browsing/threat_dom_details.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/threat_dom_details_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/test_launcher_utils.cc View 2 chunks +2 lines, -1 line 0 comments Download
A components/safe_browsing/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
A components/safe_browsing/common/BUILD.gn View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A components/safe_browsing/common/DEPS View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A components/safe_browsing/common/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A components/safe_browsing/common/safebrowsing_constants.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
A components/safe_browsing/common/safebrowsing_constants.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
A components/safe_browsing/common/safebrowsing_message_generator.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A components/safe_browsing/common/safebrowsing_message_generator.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A + components/safe_browsing/common/safebrowsing_messages.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/safe_browsing/common/safebrowsing_switches.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
A components/safe_browsing/common/safebrowsing_switches.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 82 (49 generated)
timvolodine
4 years, 1 month ago (2016-10-28 15:52:42 UTC) #29
Nathan Parker
Thanks Tim. Overall LG, though I'd like to understand the plan for what goes in ...
4 years, 1 month ago (2016-10-28 17:55:07 UTC) #31
sgurun-gerrit only
On 2016/10/28 17:55:07, Nathan Parker wrote: > Thanks Tim. Overall LG, though I'd like to ...
4 years, 1 month ago (2016-11-04 02:25:36 UTC) #32
timvolodine
On 2016/11/04 02:25:36, sgurun wrote: > On 2016/10/28 17:55:07, Nathan Parker wrote: > > Thanks ...
4 years, 1 month ago (2016-11-04 15:44:22 UTC) #33
timvolodine
On 2016/10/28 17:55:07, Nathan Parker wrote: > Thanks Tim. Overall LG, though I'd like to ...
4 years, 1 month ago (2016-11-04 15:45:14 UTC) #34
timvolodine
replies below, ptal. https://codereview.chromium.org/2450993003/diff/100001/chrome/renderer/BUILD.gn File chrome/renderer/BUILD.gn (right): https://codereview.chromium.org/2450993003/diff/100001/chrome/renderer/BUILD.gn#newcode211 chrome/renderer/BUILD.gn:211: "//components/safe_browsing/common:common", On 2016/10/28 17:55:07, Nathan Parker ...
4 years, 1 month ago (2016-11-04 17:53:02 UTC) #35
timvolodine
On 2016/11/04 17:53:02, timvolodine wrote: > replies below, ptal. > > https://codereview.chromium.org/2450993003/diff/100001/chrome/renderer/BUILD.gn > File chrome/renderer/BUILD.gn ...
4 years, 1 month ago (2016-11-10 15:37:30 UTC) #36
Nathan Parker
Blah sorry, this fell off my radar. I will aim to reply by midday today.
4 years, 1 month ago (2016-11-10 17:25:08 UTC) #37
Nathan Parker
So looking through the past discussions and existing code, I don't think there is any ...
4 years, 1 month ago (2016-11-10 18:57:46 UTC) #38
timvolodine
Thanks for the comments! replies below https://codereview.chromium.org/2450993003/diff/140001/components/safe_browsing/common/safebrowsing_constants.cc File components/safe_browsing/common/safebrowsing_constants.cc (right): https://codereview.chromium.org/2450993003/diff/140001/components/safe_browsing/common/safebrowsing_constants.cc#newcode10 components/safe_browsing/common/safebrowsing_constants.cc:10: FILE_PATH_LITERAL("Safe Browsing"); On ...
4 years, 1 month ago (2016-11-18 14:07:11 UTC) #39
timvolodine
On 2016/11/10 18:57:46, Nathan Parker wrote: > So looking through the past discussions and existing ...
4 years, 1 month ago (2016-11-18 14:11:10 UTC) #40
Nathan Parker
lgtm By just pulling on dependencies and moving code as you go, it seems to ...
4 years, 1 month ago (2016-11-18 17:30:03 UTC) #41
vakh (use Gerrit instead)
lgtm. thanks for doing this dirty work.
4 years, 1 month ago (2016-11-18 22:16:18 UTC) #42
timvolodine
On 2016/11/18 17:30:03, Nathan Parker wrote: > lgtm > > By just pulling on dependencies ...
4 years, 1 month ago (2016-11-21 16:57:54 UTC) #44
timvolodine
+OWNERS for the remaining bits +tsepez@: for safebrowsing_messages.h +thakis@: for chrome/common, chrome/test +blundell@: for components/
4 years, 1 month ago (2016-11-21 17:00:07 UTC) #46
Tom Sepez
LGTM. Also make sure to confirm that target ipc_fuzzer_all builds locally, bots may skip that ...
4 years, 1 month ago (2016-11-21 18:26:39 UTC) #47
blundell
Tim, what do you need me to review?
4 years, 1 month ago (2016-11-22 16:48:47 UTC) #48
timvolodine
On 2016/11/22 16:48:47, blundell wrote: > Tim, what do you need me to review? blundell@: ...
4 years ago (2016-11-23 13:43:28 UTC) #49
blundell
Apologies for reviving this issue, but looking through the messages on this CL wasn't sufficient ...
4 years ago (2016-11-23 16:17:06 UTC) #50
timvolodine
On 2016/11/23 16:17:06, blundell wrote: > Apologies for reviving this issue, but looking through the ...
4 years ago (2016-11-23 16:40:14 UTC) #52
Nico
chrome/common and chrome/test lgtm (but you'll need blundell's approval to for components/)
4 years ago (2016-11-24 00:42:43 UTC) #53
blundell
new component LGTM As we discussed offline, I'd like to see the safe_browsing and safe_browsing_db ...
4 years ago (2016-11-24 15:23:01 UTC) #54
timvolodine
On 2016/11/24 15:23:01, blundell wrote: > new component LGTM > > As we discussed offline, ...
4 years ago (2016-11-24 15:39:20 UTC) #55
Tom Sepez
Messages LGTM, but be sure to manually build target ipc_fuzzer_all (not always picked up by ...
4 years ago (2016-12-01 16:40:02 UTC) #62
timvolodine
On 2016/12/01 16:40:02, Tom Sepez wrote: > Messages LGTM, but be sure to manually build ...
4 years ago (2016-12-01 17:11:11 UTC) #65
timvolodine
Thanks for the reviews everybody!
4 years ago (2016-12-01 17:11:58 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2450993003/180001
4 years ago (2016-12-01 17:12:37 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/316463)
4 years ago (2016-12-01 17:20:41 UTC) #71
timvolodine
+brettw@ : apparently for components/safe_browsing/common/DEPS +url dependency
4 years ago (2016-12-01 17:22:15 UTC) #73
timvolodine
On 2016/12/01 17:22:15, timvolodine wrote: > +brettw@ : apparently for components/safe_browsing/common/DEPS +url dependency (actually TBR ...
4 years ago (2016-12-01 17:24:13 UTC) #75
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2450993003/180001
4 years ago (2016-12-01 17:24:47 UTC) #77
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-01 17:30:09 UTC) #80
commit-bot: I haz the power
4 years ago (2016-12-01 17:32:15 UTC) #82
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f30c94f1fa39ad0467a31ff99e7acc02142e6fa6
Cr-Commit-Position: refs/heads/master@{#435635}

Powered by Google App Engine
This is Rietveld 408576698