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

Issue 1399843003: Move prefix_set and parts of s_b_util into a new component safe_browsing_db. (Closed)

Created:
5 years, 2 months ago by vakh (old account. dont use)
Modified:
5 years, 2 months ago
CC:
chromium-reviews, grt+watch_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, Jialiu Lin, gsennton
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move prefix_set and parts of safe_browsing_util into a new component safe_browsing_db. This component will hold the new implementation for the next version (pver4) of the update protocol and DB. BUG=543161 Committed: https://crrev.com/607ee298239a88fa0823c3aea10bcee83eff855a Cr-Commit-Position: refs/heads/master@{#355654}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix BUILD files, move test for SBFullhashToString to s_b_db_util, CR feedback. #

Patch Set 3 : Merge the changes from origin/master branch. #

Patch Set 4 : static_cast size_t to uint32 since that's the type of the second argument in the pair. #

Patch Set 5 : Make safe_browsing_db a non-iOS component. #

Patch Set 6 : #include 'base/macros.h' in components/safe_browsing_db/prefix_set.h #

Patch Set 7 : Use group instead of a static_library for targets that have no sources. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -6495 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
D chrome/browser/safe_browsing/prefix_set.h View 1 chunk +0 lines, -186 lines 0 comments Download
D chrome/browser/safe_browsing/prefix_set.cc View 1 chunk +0 lines, -448 lines 0 comments Download
D chrome/browser/safe_browsing/prefix_set_unittest.cc View 1 chunk +0 lines, -726 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.h View 5 chunks +1 line, -54 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 2 3 4 3 chunks +0 lines, -35 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util_unittest.cc View 1 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
D chrome/test/data/SafeBrowsing/PrefixSetRef View 1 chunk +0 lines, -5000 lines 0 comments Download
D chrome/test/data/SafeBrowsing/PrefixSetVersion2 View Binary file 0 comments Download
D chrome/test/data/SafeBrowsing/PrefixSetVersion3 View Binary file 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
A + components/safe_browsing_db.gypi View 1 2 1 chunk +10 lines, -8 lines 0 comments Download
A components/safe_browsing_db/BUILD.gn View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A + components/safe_browsing_db/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/safe_browsing_db/OWNERS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A components/safe_browsing_db/README View 1 1 chunk +3 lines, -0 lines 0 comments Download
A + components/safe_browsing_db/prefix_set.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
A + components/safe_browsing_db/prefix_set.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
A + components/safe_browsing_db/prefix_set_unittest.cc View 5 chunks +14 lines, -12 lines 0 comments Download
A components/safe_browsing_db/safe_browsing_db_util.h View 1 chunk +62 lines, -0 lines 0 comments Download
A components/safe_browsing_db/safe_browsing_db_util.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A components/safe_browsing_db/safe_browsing_db_util_unittest.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download
A + components/test/data/SafeBrowsingDb/PrefixSetRef View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/SafeBrowsingDb/PrefixSetVersion2 View Binary file 0 comments Download
A + components/test/data/SafeBrowsingDb/PrefixSetVersion3 View Binary file 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (12 generated)
Nathan Parker
https://codereview.chromium.org/1399843003/diff/1/chrome/browser/safe_browsing/safe_browsing_util.cc File chrome/browser/safe_browsing/safe_browsing_util.cc (left): https://codereview.chromium.org/1399843003/diff/1/chrome/browser/safe_browsing/safe_browsing_util.cc#oldcode494 chrome/browser/safe_browsing/safe_browsing_util.cc:494: GURL GeneratePhishingReportUrl(const std::string& report_page, meta note: This is being ...
5 years, 2 months ago (2015-10-14 17:37:10 UTC) #3
Nathan Parker
+jialiul so she's aware of code moving around. vakh is setting up safe_browsing_db as a ...
5 years, 2 months ago (2015-10-14 17:38:39 UTC) #4
Nathan Parker
+droger for feedback on structure of new component.
5 years, 2 months ago (2015-10-15 00:33:33 UTC) #6
droger
From a high (directory structure and DEPS) this seems fine, if you don't anticipate componentizing ...
5 years, 2 months ago (2015-10-15 09:10:27 UTC) #7
vakh (old account. dont use)
https://codereview.chromium.org/1399843003/diff/1/chrome/browser/safe_browsing/safe_browsing_util.cc File chrome/browser/safe_browsing/safe_browsing_util.cc (left): https://codereview.chromium.org/1399843003/diff/1/chrome/browser/safe_browsing/safe_browsing_util.cc#oldcode494 chrome/browser/safe_browsing/safe_browsing_util.cc:494: GURL GeneratePhishingReportUrl(const std::string& report_page, On 2015/10/14 17:37:10, nparker wrote: ...
5 years, 2 months ago (2015-10-15 21:07:08 UTC) #8
Nathan Parker
lgtm thestig@chromium.org: Please review changes in chrome/ DEPS and build blundell@chromium.org: Please review changes in ...
5 years, 2 months ago (2015-10-15 22:55:33 UTC) #10
Lei Zhang
On 2015/10/15 22:55:33, nparker wrote: > mailto:thestig@chromium.org: Please review changes in > chrome/ DEPS and ...
5 years, 2 months ago (2015-10-15 23:01:09 UTC) #11
blundell
lgtm with question resolved What's the story for this component on iOS in the end? ...
5 years, 2 months ago (2015-10-16 07:29:25 UTC) #12
chromium-reviews
This would not be used in iOS, since we don't have plans to support safe ...
5 years, 2 months ago (2015-10-16 14:28:57 UTC) #13
blundell
On 2015/10/16 14:28:57, chromium-reviews wrote: > This would not be used in iOS, since we ...
5 years, 2 months ago (2015-10-16 14:31:45 UTC) #14
vakh (old account. dont use)
On 2015/10/16 14:31:45, blundell wrote: > On 2015/10/16 14:28:57, chromium-reviews wrote: > > This would ...
5 years, 2 months ago (2015-10-16 21:44:15 UTC) #15
chromium-reviews
I think that's all you needed. Now it won't be built for iOS, and it ...
5 years, 2 months ago (2015-10-16 21:58:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399843003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399843003/80001
5 years, 2 months ago (2015-10-16 23:37:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/110303) win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 2 months ago (2015-10-16 23:42:31 UTC) #21
vakh (old account. dont use)
+rsleevi for allowing components/safe_browsing_db/ to depend on +crypto
5 years, 2 months ago (2015-10-16 23:54:21 UTC) #23
Ryan Sleevi
//crypto DEP LGTM
5 years, 2 months ago (2015-10-16 23:55:51 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399843003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399843003/80001
5 years, 2 months ago (2015-10-17 00:37:53 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/110326)
5 years, 2 months ago (2015-10-17 00:49:36 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399843003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399843003/120001
5 years, 2 months ago (2015-10-22 21:23:20 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-22 22:10:37 UTC) #32
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/607ee298239a88fa0823c3aea10bcee83eff855a Cr-Commit-Position: refs/heads/master@{#355654}
5 years, 2 months ago (2015-10-22 22:11:32 UTC) #33
DaleCurtis
5 years, 2 months ago (2015-10-22 22:36:15 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1420143002/ by dalecurtis@chromium.org.

The reason for reverting is: Broke the Windows x64 GN builders:

http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20x64%20GN&n....

Powered by Google App Engine
This is Rietveld 408576698