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

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)

Created:
3 years, 7 months ago by timvolodine
Modified:
3 years, 7 months ago
CC:
Jialiu Lin, blundell+watchlist_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, droger+watchlist_chromium.org, extensions-reviews_chromium.org, grt+watch_chromium.org, Nathan Parker, sdefresne+watchlist_chromium.org, timvolodine, vakh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify safe_browsing* components [1]: move safe_browsing_prefs* This patch performs a step towards unification of safe_browsing_db and safe_browsing components by moving safe_browsing_prefs* to safe_browsing/common/ as discussed in the design doc (https://goo.gl/2R6K3G). BUG=668515 TBR=thakis@chromium.org Review-Url: https://codereview.chromium.org/2869383002 Cr-Commit-Position: refs/heads/master@{#471824} Committed: https://chromium.googlesource.com/chromium/src/+/89cf1171a6451dea5588e7b053a24d3a64a77f82

Patch Set 1 #

Patch Set 2 : rebase, fix compile on linux, reformat #

Patch Set 3 : fix build deps #

Patch Set 4 : fix compile on win #

Total comments: 4

Patch Set 5 : address comments #

Total comments: 2

Patch Set 6 : fix build package #

Total comments: 2

Patch Set 7 : modify safe_browsing_db/DEPS #

Patch Set 8 : rebase #

Patch Set 9 : fix win bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -1127 lines) Patch
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/settings_private/prefs_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/interstitials/chrome_controller_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/chrome_password_protection_service.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/notification_image_reporter.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/notification_image_reporter_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/ui_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/ui_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/bad_clock_blocking_page.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/cert_report_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/certificate_reporting_test_utils.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_feedback_dialog_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/safe_browsing_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing/base_blocking_page.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing/common/BUILD.gn View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M components/safe_browsing/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/safe_browsing/common/safe_browsing_prefs.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/safe_browsing/common/safe_browsing_prefs.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A + components/safe_browsing/common/safe_browsing_prefs_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/BUILD.gn View 8 chunks +5 lines, -17 lines 0 comments Download
M components/safe_browsing_db/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/hit_report.h View 1 chunk +1 line, -1 line 0 comments Download
D components/safe_browsing_db/safe_browsing_prefs.h View 1 chunk +0 lines, -151 lines 0 comments Download
D components/safe_browsing_db/safe_browsing_prefs.cc View 1 chunk +0 lines, -440 lines 0 comments Download
D components/safe_browsing_db/safe_browsing_prefs_unittest.cc View 1 chunk +0 lines, -462 lines 0 comments Download
M components/safe_browsing_db/util.h View 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M components/security_interstitials/content/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M components/security_interstitials/content/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/security_interstitials/content/security_interstitial_controller_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/security_interstitials/content/security_interstitial_page.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 65 (44 generated)
timvolodine
lpz@: for safe_browsing_prefs* vakh@: as owner of safe_browsing_db +cc:nparker@,jialiu@
3 years, 7 months ago (2017-05-11 13:55:36 UTC) #16
lpz
Whew, thanks for tracking down all these references! https://codereview.chromium.org/2869383002/diff/60001/components/safe_browsing/common/safe_browsing_prefs.cc File components/safe_browsing/common/safe_browsing_prefs.cc (right): https://codereview.chromium.org/2869383002/diff/60001/components/safe_browsing/common/safe_browsing_prefs.cc#newcode5 components/safe_browsing/common/safe_browsing_prefs.cc:5: #include ...
3 years, 7 months ago (2017-05-11 18:17:36 UTC) #20
timvolodine
Thanks for the review Luke, PTAL. https://codereview.chromium.org/2869383002/diff/60001/components/safe_browsing/common/safe_browsing_prefs.cc File components/safe_browsing/common/safe_browsing_prefs.cc (right): https://codereview.chromium.org/2869383002/diff/60001/components/safe_browsing/common/safe_browsing_prefs.cc#newcode5 components/safe_browsing/common/safe_browsing_prefs.cc:5: #include "components/safe_browsing/common/safe_browsing_prefs.h" On ...
3 years, 7 months ago (2017-05-12 11:31:09 UTC) #23
lpz
LGTM aside from the c/s_b_db/android build file question. https://codereview.chromium.org/2869383002/diff/80001/components/safe_browsing_db/android/BUILD.gn File components/safe_browsing_db/android/BUILD.gn (right): https://codereview.chromium.org/2869383002/diff/80001/components/safe_browsing_db/android/BUILD.gn#newcode23 components/safe_browsing_db/android/BUILD.gn:23: jni_package ...
3 years, 7 months ago (2017-05-12 13:45:52 UTC) #26
timvolodine
thanks! https://codereview.chromium.org/2869383002/diff/80001/components/safe_browsing_db/android/BUILD.gn File components/safe_browsing_db/android/BUILD.gn (right): https://codereview.chromium.org/2869383002/diff/80001/components/safe_browsing_db/android/BUILD.gn#newcode23 components/safe_browsing_db/android/BUILD.gn:23: jni_package = "components/safe_browsing/android" On 2017/05/12 13:45:52, lpz wrote: ...
3 years, 7 months ago (2017-05-12 15:04:14 UTC) #29
timvolodine
vakh@ : does this look ok to you?
3 years, 7 months ago (2017-05-12 15:05:06 UTC) #30
timvolodine
+jialiul@: for chrome/browser/safe_browsing and components/security_interstitials/
3 years, 7 months ago (2017-05-12 15:24:33 UTC) #32
Jialiu Lin
LGTM for c/b/safe_browsing and components/security_interstitials
3 years, 7 months ago (2017-05-12 16:59:22 UTC) #33
vakh (use Gerrit instead)
lgtm https://codereview.chromium.org/2869383002/diff/100001/components/safe_browsing_db/DEPS File components/safe_browsing_db/DEPS (right): https://codereview.chromium.org/2869383002/diff/100001/components/safe_browsing_db/DEPS#newcode4 components/safe_browsing_db/DEPS:4: "+components/safe_browsing", it seems odd to me that safe_browsing_db ...
3 years, 7 months ago (2017-05-12 17:28:14 UTC) #36
timvolodine
https://codereview.chromium.org/2869383002/diff/100001/components/safe_browsing_db/DEPS File components/safe_browsing_db/DEPS (right): https://codereview.chromium.org/2869383002/diff/100001/components/safe_browsing_db/DEPS#newcode4 components/safe_browsing_db/DEPS:4: "+components/safe_browsing", On 2017/05/12 17:28:14, vakh (Varun Khaneja) wrote: > ...
3 years, 7 months ago (2017-05-12 17:50:51 UTC) #39
timvolodine
+jam@: for chrome/browser/android/preferences/pref_service_bridge.cc chrome/browser/extensions/BUILD.gn components/BUILD.gn chrome/browser/profiles/profile.cc I'll probably TBR chrome/browser/ssl/, chrome/browser/ui/, chrome/browser/extensions/ since the change ...
3 years, 7 months ago (2017-05-12 17:59:43 UTC) #41
timvolodine
correction: +blundell@: for components/BUILD.gn
3 years, 7 months ago (2017-05-12 18:02:53 UTC) #43
jam
On 2017/05/12 17:59:43, timvolodine wrote: > +jam@: for > chrome/browser/android/preferences/pref_service_bridge.cc > chrome/browser/extensions/BUILD.gn > components/BUILD.gn > ...
3 years, 7 months ago (2017-05-12 19:54:04 UTC) #46
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/2869383002/120001
3 years, 7 months ago (2017-05-12 19:54:51 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/292856)
3 years, 7 months ago (2017-05-12 19:59:32 UTC) #51
blundell
lgtm
3 years, 7 months ago (2017-05-15 07:08:38 UTC) #52
timvolodine
thanks everybody! +TBR: thakis@ for remaining chrome/browser files (mechanical changes) chrome/browser/ssl, chrome/browser/ui, chrome/browser/extensions.
3 years, 7 months ago (2017-05-15 12:56:05 UTC) #54
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/2869383002/140001
3 years, 7 months ago (2017-05-15 12:56:31 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/444407)
3 years, 7 months ago (2017-05-15 13:32:27 UTC) #59
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/2869383002/160001
3 years, 7 months ago (2017-05-15 14:52:05 UTC) #62
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 18:05:30 UTC) #65
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/89cf1171a6451dea5588e7b053a2...

Powered by Google App Engine
This is Rietveld 408576698