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

Issue 1420123003: Move more declarations from c/b/sb/sb_util.h to components. (Closed)

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

Description

1. Pull all code unrelated to chunking from chrome/browser/safe_browsing/safe_brwsing_util.h into components/safe_browsing_db. 2. All code that was formerly under the safe_browsing_util namespace is now under safe_browsing. That's the only namespace we plan to use going forward. 3. Chunking related code will stay in the old location and removed once we switch to PVER4. The next CL in this series will move the structures/enums currently under the global namespace in safe_browsing_db_util.h into safe_browsing. I did not do that as part of this CL to keep it smaller and easier to review. BUG=543161 Committed: https://crrev.com/154455e8186ad19a8b54ca23e344ade0d92c34cf Cr-Commit-Position: refs/heads/master@{#357763}

Patch Set 1 #

Patch Set 2 : Making 1415923004 the base issue, instead of 1399843003 which was reverted. #

Total comments: 1

Patch Set 3 : safe_browsing_db/safe_browsing_db_util -> safe_browsing_db/util #

Patch Set 4 : Remove OS_ANDROID specific list name. #

Patch Set 5 : Merging latest changes from trunk. #

Patch Set 6 : #include cstring, string, and vector in components/safe_browsing_db/util.h #

Patch Set 7 : Link in util_unittest.cc instead of safe_browsing_db_util_unittest.cc #

Patch Set 8 : Replace safe_browsing_util:: with safe_browsing:: in Chrome-only tests. #

Patch Set 9 : Minor: Replace safe_browsing_util:: with safe_browsing:: and use safe_browsing:: namespace prefix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -1362 lines) Patch
M chrome/browser/extensions/fake_safe_browsing_database_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/database_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.h View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 2 3 4 17 chunks +55 lines, -54 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager_unittest.cc View 6 chunks +25 lines, -22 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_parser_unittest.cc View 1 2 8 chunks +21 lines, -17 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 18 chunks +46 lines, -41 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 60 chunks +114 lines, -103 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 8 15 chunks +19 lines, -19 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc View 1 2 9 chunks +19 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_unittest.cc View 1 2 4 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.h View 1 2 3 chunks +1 line, -98 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 2 chunks +0 lines, -355 lines 0 comments Download
D chrome/browser/safe_browsing/safe_browsing_util_unittest.cc View 1 chunk +0 lines, -323 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/safe_browsing_db/BUILD.gn View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M components/safe_browsing_db/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/prefix_set.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/prefix_set_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + components/safe_browsing_db/util.h View 1 2 3 4 5 5 chunks +59 lines, -74 lines 0 comments Download
A + components/safe_browsing_db/util.cc View 1 2 3 6 chunks +56 lines, -170 lines 0 comments Download
A + components/safe_browsing_db/util_unittest.cc View 1 2 7 chunks +47 lines, -31 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (6 generated)
vakh (old account. dont use)
(optional) mattm@chromium.org: Please review changes in chrome/browser/safe_browsing/... components/safe_browsing_db/... nparker@chromium.org: Please review changes in chrome/browser/safe_browsing/... components/safe_browsing_db/... ...
5 years, 2 months ago (2015-10-23 01:52:11 UTC) #3
blundell
You're better off having a //components/safe_browsing_db OWNER do the review of //components/safe_browsing_db and then having ...
5 years, 2 months ago (2015-10-23 07:12:08 UTC) #4
Nathan Parker
lgtm How about naming these components/safe_browsing_db/util.* rather than components/safe_browsing_db/safe_browsing_db_* https://codereview.chromium.org/1420123003/diff/20001/components/safe_browsing_db/safe_browsing_db_util.cc File components/safe_browsing_db/safe_browsing_db_util.cc (right): https://codereview.chromium.org/1420123003/diff/20001/components/safe_browsing_db/safe_browsing_db_util.cc#newcode45 components/safe_browsing_db/safe_browsing_db_util.cc:45: ...
5 years, 1 month ago (2015-10-26 19:43:19 UTC) #5
vakh (old account. dont use)
On 2015/10/26 19:43:19, nparker wrote: > lgtm > > How about naming these > components/safe_browsing_db/util.* ...
5 years, 1 month ago (2015-10-27 22:35:34 UTC) #6
vakh (old account. dont use)
thestig@chromium.org: Please review changes in: chrome/browser/extensions/fake_safe_browsing_database_manager.cc chrome/browser/prerender/prerender_browsertest.cc blundell@chromium.org: Please review changes in components/safe_browsing_db.gypi Thanks!
5 years, 1 month ago (2015-11-03 01:50:21 UTC) #7
Lei Zhang
On 2015/11/03 01:50:21, Varun Khaneja wrote: > mailto:thestig@chromium.org: Please review changes in: > chrome/browser/extensions/fake_safe_browsing_database_manager.cc > ...
5 years, 1 month ago (2015-11-03 01:52:01 UTC) #8
blundell
//components top-level lgtm You can add per-file owners for the gypi file in //components/OWNERS.
5 years, 1 month ago (2015-11-03 08:31:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420123003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420123003/160001
5 years, 1 month ago (2015-11-03 22:25:32 UTC) #12
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/115240)
5 years, 1 month ago (2015-11-03 22:48:25 UTC) #14
vakh (old account. dont use)
On 2015/11/03 22:48:25, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-11-03 22:52:46 UTC) #15
mattm
DEPS lgtm
5 years, 1 month ago (2015-11-04 03:23:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420123003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420123003/160001
5 years, 1 month ago (2015-11-04 04:20:12 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 1 month ago (2015-11-04 05:46:39 UTC) #19
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/154455e8186ad19a8b54ca23e344ade0d92c34cf Cr-Commit-Position: refs/heads/master@{#357763}
5 years, 1 month ago (2015-11-04 05:47:41 UTC) #20
binjin
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1410343012/ by binjin@chromium.org. ...
5 years, 1 month ago (2015-11-04 12:13:51 UTC) #21
blundell
5 years, 1 month ago (2015-11-04 12:21:09 UTC) #22
Message was sent while issue was closed.
On 2015/11/04 12:13:51, binjin wrote:
> A revert of this CL (patchset #9 id:160001) has been created in
> https://codereview.chromium.org/1410343012/ by mailto:binjin@chromium.org.
> 
> The reason for reverting is: Suspected to break the win compile:
> FAILED: ninja -t msvc -e environment.x64 -- E:\b\build\goma/gomacc.exe
> "E:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64/cl.exe" /nologo
> /showIncludes /FC @obj/components/safe_browsing_db/util/util.obj.rsp /c
> ../../components/safe_browsing_db/util.cc
> /Foobj/components/safe_browsing_db/util/util.obj
> /Fdobj/components/safe_browsing_db/util_cc.pdb
>
e:\b\build\slave\win_x64_gn__dbg_\build\src\components\safe_browsing_db\util.cc(225)
> :error C2220: warning treated as error - no 'object' file generated
> .

Please in general add a link to the failing bot run in the CL description for
the revert. Can you provide that link here?

Powered by Google App Engine
This is Rietveld 408576698