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

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

Created:
6 years, 5 months ago by Scott Hess - ex-Googler
Modified:
5 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, extensions-reviews_chromium.org
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 refering to feature bundles. SAFE_BROWSING_SERVICE - enable the browser to talk to the server. SAFE_BROWSING_DATABASE - maintain local database(s) synced from the server. SAFE_BROWSING_CSD - client-side phishing detection support. BUG=none

Patch Set 1 #

Total comments: 2

Patch Set 2 : cleanup gn files #

Total comments: 4

Patch Set 3 : Rebase to pick up safe_browsing_resource_throttle_factory change. #

Total comments: 7

Patch Set 4 : update compile error message #

Patch Set 5 : rebase to satiate trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -112 lines) Patch
M build/common.gypi View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M build/config/BUILD.gn View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher_browsertest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/blacklist.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc View 1 2 3 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 5 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_tab_observer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_tab_observer.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +2 lines, -13 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 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 1 chunk +9 lines, -14 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 2 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Scott Hess - ex-Googler
This is the change I was speaking of earlier. Putting things into common.gypi did help, ...
6 years, 5 months ago (2014-07-15 23:35:12 UTC) #1
Scott Hess - ex-Googler
On 2014/07/15 23:35:12, Scott Hess wrote: > This is the change I was speaking of ...
6 years, 5 months ago (2014-07-15 23:35:59 UTC) #2
Ryan Sleevi
Brett can talk more about GN, but you've already got the features flag ( http://src.chromium.org/viewvc/chrome/trunk/src/build/config/features.gni?revision=283057 ...
6 years, 5 months ago (2014-07-15 23:46:10 UTC) #3
Scott Hess - ex-Googler
Amazingly, I had entirely missed that the BUILD.gn files would be entirely as joyful as ...
6 years, 5 months ago (2014-07-17 23:51:46 UTC) #4
brettw
The GN changes look correct so LGTM, but I'm sad to see so many more ...
6 years, 5 months ago (2014-07-18 00:00:54 UTC) #5
Ryan Sleevi
Brett, I thought there was a cleaner way in the brave-new-GN world using some config ...
6 years, 5 months ago (2014-07-18 00:04:16 UTC) #6
Scott Hess - ex-Googler
On 2014/07/18 00:00:54, brettw wrote: > The GN changes look correct so LGTM, but I'm ...
6 years, 5 months ago (2014-07-18 00:15:46 UTC) #7
Scott Hess - ex-Googler
Also, I would greatly prefer restricting this to chrome/ if it can be done effectively. ...
6 years, 5 months ago (2014-07-18 00:17:13 UTC) #8
brettw
GN should work about the same as GYP in this respect (otherwise conversion would be ...
6 years, 5 months ago (2014-07-18 19:49:30 UTC) #9
Ryan Sleevi
To circle back on this: This LGTM, buttt.... As far as I can tell, you ...
6 years, 5 months ago (2014-07-24 22:47:50 UTC) #10
Scott Hess - ex-Googler
https://codereview.chromium.org/397853002/diff/20001/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h File chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h (right): https://codereview.chromium.org/397853002/diff/20001/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h#newcode34 chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h:34: #endif On 2014/07/24 22:47:50, Ryan Sleevi wrote: > Does ...
6 years, 4 months ago (2014-07-29 22:52:31 UTC) #11
Scott Hess - ex-Googler
On 2014/07/24 22:47:50, Ryan Sleevi wrote: > To circle back on this: This LGTM, buttt.... ...
6 years, 4 months ago (2014-07-30 21:29:57 UTC) #12
Scott Hess - ex-Googler
Lei, looping you in for chrome/ OWNERS because you OWNERS-reviewed the safe_browsing_resource_throttle_factory change I broke ...
6 years, 4 months ago (2014-07-30 21:36:08 UTC) #13
Lei Zhang
Reviewing... +mattm
6 years, 4 months ago (2014-07-30 21:59:44 UTC) #14
Lei Zhang
lgtm if mattm approves. https://codereview.chromium.org/397853002/diff/40001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): https://codereview.chromium.org/397853002/diff/40001/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode227 chrome/browser/safe_browsing/safe_browsing_service.cc:227: #if defined(SAFE_BROWSING_CSD) This shouldn't need ...
6 years, 4 months ago (2014-07-30 22:05:13 UTC) #15
mattm
lgtm with comments https://codereview.chromium.org/397853002/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/397853002/diff/40001/build/common.gypi#newcode2867 build/common.gypi:2867: # TODO(shess): I believe this case ...
6 years, 4 months ago (2014-07-31 00:51:43 UTC) #16
Lei Zhang
https://codereview.chromium.org/397853002/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/397853002/diff/40001/build/common.gypi#newcode2867 build/common.gypi:2867: # TODO(shess): I believe this case is no longer ...
6 years, 4 months ago (2014-07-31 00:54:45 UTC) #17
mattm
https://codereview.chromium.org/397853002/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/397853002/diff/40001/build/common.gypi#newcode2867 build/common.gypi:2867: # TODO(shess): I believe this case is no longer ...
6 years, 4 months ago (2014-07-31 00:59:44 UTC) #18
Scott Hess - ex-Googler
+rohitrao FYI in case I'm going to destroy you, though I don't expect a full ...
6 years, 4 months ago (2014-07-31 20:50:14 UTC) #19
Tom Sepez
Rubberstamp LGTM on safe browsing messages.
6 years, 4 months ago (2014-07-31 21:08:10 UTC) #20
Ryan Sleevi
scott: Dead CL? Mind closing? Alternatively, happy to revisit if you're still working on this ...
5 years, 7 months ago (2015-05-07 01:09:38 UTC) #21
Scott Hess - ex-Googler
5 years, 7 months ago (2015-05-07 05:33:16 UTC) #22
On 2015/05/07 01:09:38, Ryan Sleevi wrote:
> scott: Dead CL? Mind closing? Alternatively, happy to revisit if you're still
> working on this 9 months later :)

Actually, Nathan took it over elsewhere.

Powered by Google App Engine
This is Rietveld 408576698