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

Issue 2505153002: Add support for scout to 'ext' param when creating SafeBrowsing ping URLs. (Closed)

Created:
4 years, 1 month ago by lpz
Modified:
4 years, 1 month ago
CC:
chromium-reviews, grt+watch_chromium.org, vakh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for scout to 'ext' param when creating SafeBrowsing ping URLs. This is the quick and dirty version that updates all call sites to support the "reporting level" enum instead of a boolean. There seems to be a lot of duplication in this code so probably a candidate for refactoring as a follow-up. But this will at least give us Scout insight in a shorter term. BUG=665922 Committed: https://crrev.com/ed21b96db47a2ad59e4c9cf6b9e3c05dd4d85190 Cr-Commit-Position: refs/heads/master@{#433012}

Patch Set 1 #

Patch Set 2 : Add missing dep #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Go back to IsExtendedReportingEnabled where level doesn't matter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -64 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.h View 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 3 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/ping_manager_unittest.cc View 7 chunks +25 lines, -7 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 6 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_helper.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_helper.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_unittest.cc View 4 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/ui_manager.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/safe_browsing_db/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/hit_report.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/safe_browsing_db/safe_browsing_prefs.h View 1 2 chunks +16 lines, -0 lines 0 comments Download
M components/safe_browsing_db/safe_browsing_prefs.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M components/safe_browsing_db/safe_browsing_prefs_unittest.cc View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
lpz
Here's a quick-and-dirty stab at this to try to get something into m56. I'd do ...
4 years, 1 month ago (2016-11-17 16:36:09 UTC) #8
Jialiu Lin
I feel for some cases (e.g. whether sample unsupported files or sample whitelisted download), a ...
4 years, 1 month ago (2016-11-17 18:47:23 UTC) #13
vakh (use Gerrit instead)
lgtm modulo Jialiu's comments. Optional: You could also consider writing a helper method that takes ...
4 years, 1 month ago (2016-11-17 18:53:44 UTC) #15
lpz
https://codereview.chromium.org/2505153002/diff/20001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2505153002/diff/20001/chrome/browser/safe_browsing/download_protection_service.cc#newcode951 chrome/browser/safe_browsing/download_protection_service.cc:951: auto population = extended_reporting_level_ != SBER_LEVEL_OFF On 2016/11/17 18:47:23, ...
4 years, 1 month ago (2016-11-17 19:46:05 UTC) #16
Jialiu Lin
lgtm https://codereview.chromium.org/2505153002/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2505153002/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1243 chrome/browser/safe_browsing/download_protection_service.cc:1243: GetExtendedReportingLevel(*profile->GetPrefs()) != SBER_LEVEL_OFF; nit, feel free to ignore.: ...
4 years, 1 month ago (2016-11-17 19:50:30 UTC) #19
lpz
https://codereview.chromium.org/2505153002/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2505153002/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1243 chrome/browser/safe_browsing/download_protection_service.cc:1243: GetExtendedReportingLevel(*profile->GetPrefs()) != SBER_LEVEL_OFF; On 2016/11/17 19:50:30, Jialiu Lin wrote: ...
4 years, 1 month ago (2016-11-17 19:57:08 UTC) #20
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/2505153002/60001
4 years, 1 month ago (2016-11-17 22:04:52 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-17 23:17:26 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 23:21:46 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ed21b96db47a2ad59e4c9cf6b9e3c05dd4d85190
Cr-Commit-Position: refs/heads/master@{#433012}

Powered by Google App Engine
This is Rietveld 408576698