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

Issue 1081403002: Refactor safe-browsing build-config definitions (Closed)

Created:
5 years, 8 months ago by Nathan Parker
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, grt+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor safe-browsing build-config definitions. Centralize the configuration and break things down into individual sub-systems to enable, rather than referring to feature bundles. I will in a later CL add safe_browsing==3 for enabling XLB on Android, which will define SAFE_BROWSING_DB_REMOTE. When launched, this will replace mode 2. SAFE_BROWSING_SERVICE - enable the browser to talk to the server. SAFE_BROWSING_DB_LOCAL - maintain local database(s) synced from the server. SAFE_BROWSING_DB_REMOTE - talk via API to an external DB (i.e. XLB). SAFE_BROWSING_CSD - client-side phishing detection support. This is nearly a copy of shess@'s 8-month-old https://codereview.chromium.org/397853002/ which was LGTMed. Diffs: Mostly merge conflicts, a rename, and few files added BUG=394379, 474608 Committed: https://crrev.com/333f169bf09e1c455ea821520010ec8cc9658990 Cr-Commit-Position: refs/heads/master@{#325775}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Rename SAFE_BROWSING_DATABASE to ..._DB_INTERNAL #

Patch Set 4 : Fix GN includes for renderer/ #

Total comments: 3

Patch Set 5 : Fix chrome_tests.gypi, per comment #

Patch Set 6 : Rename INTERNAL/EXTERNAL to LOCAL/REMOTE #

Total comments: 2

Patch Set 7 : rm redundant defs, add todos #

Patch Set 8 : move #error up, per suggestion #

Patch Set 9 : rebase to fix conflict #

Patch Set 10 : rebase again to fix collision #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -116 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M build/config/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher_browsertest.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/extensions/blacklist.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_tab_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_tab_observer.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_utility.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/BUILD.gn View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/safe_browsing/safebrowsing_messages.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 1 chunk +12 lines, -18 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 chunk +0 lines, -4 lines 0 comments Download
M tools/ipc_fuzzer/message_tools/message_tools.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 51 (21 generated)
Nathan Parker
I'm leaning towards "local / remote" rather than "internal / external." lmo what you think.
5 years, 8 months ago (2015-04-16 16:48:10 UTC) #2
Scott Hess - ex-Googler
I think LGTM, though I no longer have the mental model in place to really ...
5 years, 8 months ago (2015-04-16 19:34:22 UTC) #3
Nathan Parker
Fix chrome_tests.gypi, per comment
5 years, 8 months ago (2015-04-16 19:59:12 UTC) #4
Nathan Parker
I agree on the desire to get rid of the other two DEFINES. I plan ...
5 years, 8 months ago (2015-04-16 20:01:53 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081403002/80001
5 years, 8 months ago (2015-04-16 20:03:58 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-17 05:47:07 UTC) #10
Scott Hess - ex-Googler
https://codereview.chromium.org/1081403002/diff/60001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1081403002/diff/60001/chrome/chrome_tests.gypi#newcode2200 chrome/chrome_tests.gypi:2200: # TODO(sgurun) enable tests for safe_browsing==2. On 2015/04/16 20:01:53, ...
5 years, 8 months ago (2015-04-17 15:01:41 UTC) #11
Nathan Parker
Rename INTERNAL/EXTERNAL to LOCAL/REMOTE
5 years, 8 months ago (2015-04-17 17:13:06 UTC) #12
Lei Zhang (Do not use)
https://codereview.chromium.org/1081403002/diff/100001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1081403002/diff/100001/build/common.gypi#newcode2987 build/common.gypi:2987: 'FULL_SAFE_BROWSING', Are there still uses of these FULL_SAFE_BROWSING and ...
5 years, 8 months ago (2015-04-17 18:04:48 UTC) #14
Lei Zhang (Do not use)
On 2015/04/17 18:04:48, Lei Zhang (Do not use) wrote: > https://codereview.chromium.org/1081403002/diff/100001/build/common.gypi > File build/common.gypi (right): ...
5 years, 8 months ago (2015-04-17 18:29:13 UTC) #15
Lei Zhang (Do not use)
lgtm https://codereview.chromium.org/1081403002/diff/100001/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc (right): https://codereview.chromium.org/1081403002/diff/100001/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc#newcode48 chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc:48: #error Need to define safe_browsing mode. I'd put ...
5 years, 8 months ago (2015-04-17 18:30:51 UTC) #16
Lei Zhang
Oh, and the CL description needs to be updated. This lgtm is from the right ...
5 years, 8 months ago (2015-04-17 18:40:39 UTC) #18
Nathan Parker
rm redundant defs, add todos
5 years, 8 months ago (2015-04-17 18:51:09 UTC) #19
Nathan Parker
Good catch. I've removed defs that aren't needed, and added TODOs. I'll fix the TODOs ...
5 years, 8 months ago (2015-04-17 19:00:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081403002/120001
5 years, 8 months ago (2015-04-17 19:01:19 UTC) #23
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/57224)
5 years, 8 months ago (2015-04-17 19:13:36 UTC) #25
Martin Barbella
LGTM for ipc_fuzzer.
5 years, 8 months ago (2015-04-17 20:06:15 UTC) #27
Nathan Parker
tsepez: Please review changes in chrome/common/safe_browsing/safebrowsing_messages.h scottmg: Please review changes in build/common.gypi and build/config/BUILD.gn Thanks!
5 years, 8 months ago (2015-04-17 20:53:27 UTC) #29
Tom Sepez
RS LGTM on changing macro names in messages file.
5 years, 8 months ago (2015-04-17 20:55:19 UTC) #30
scottmg
lgtm
5 years, 8 months ago (2015-04-17 21:03:25 UTC) #31
Nathan Parker
Thanks everyone! Submitting.
5 years, 8 months ago (2015-04-17 21:09:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081403002/140001
5 years, 8 months ago (2015-04-17 21:10:35 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/58432)
5 years, 8 months ago (2015-04-17 21:16:51 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081403002/160001
5 years, 8 months ago (2015-04-17 21:45:33 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/16052)
5 years, 8 months ago (2015-04-17 21:54:08 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081403002/160001
5 years, 8 months ago (2015-04-17 22:50:48 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/67271)
5 years, 8 months ago (2015-04-17 23:00:39 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081403002/180001
5 years, 8 months ago (2015-04-17 23:25:56 UTC) #49
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 8 months ago (2015-04-18 13:33:31 UTC) #50
commit-bot: I haz the power
5 years, 8 months ago (2015-04-18 13:34:19 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/333f169bf09e1c455ea821520010ec8cc9658990
Cr-Commit-Position: refs/heads/master@{#325775}

Powered by Google App Engine
This is Rietveld 408576698