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

Issue 2146703002: Sample 1% url whitelisted PPAPI downloads to ping safe browsing server (Closed)

Created:
4 years, 5 months ago by Jialiu Lin
Modified:
4 years, 5 months ago
Reviewers:
asanka, Lei Zhang
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sample 1% url whitelisted PPAPI downloads to ping SB server Similar to regular downloads, we want SB pings for requestors whose URLs match the SB whitelist in flash downloads. To achieve that, we sample 1% of whitelisted PPAPI downloads based on the SafeBrowsingService::whitelist_sample_rate() if the user is in extended reporting group and not in incognito mode. Also refactored download_protection_service_unittest to elliminate the use of MessageLoop (deprecated). BUG=610924 Committed: https://crrev.com/96f81d5c22a83e5ea061484c7390f37e41816f31 Cr-Commit-Position: refs/heads/master@{#406101}

Patch Set 1 : Sample 1% whitelisted PPAPI downloads #

Patch Set 2 : fix browser_tests #

Total comments: 2

Patch Set 3 : pass in profile instead #

Patch Set 4 : nit #

Total comments: 4

Patch Set 5 : address asanka@'s comment #

Total comments: 8

Patch Set 6 : address thestig@'s comments #

Total comments: 4

Patch Set 7 : refactor unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+721 lines, -547 lines) Patch
M chrome/browser/file_select_helper.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 10 chunks +60 lines, -28 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 6 40 chunks +656 lines, -518 lines 0 comments Download
M chrome/test/ppapi/ppapi_filechooser_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (21 generated)
Jialiu Lin
Hi asanka@, Let me know if you have time to take a look at this ...
4 years, 5 months ago (2016-07-13 20:54:40 UTC) #5
asanka
https://codereview.chromium.org/2146703002/diff/40001/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/2146703002/diff/40001/chrome/browser/file_select_helper.cc#newcode543 chrome/browser/file_select_helper.cc:543: is_extended_reporting, is_incognito, Since CheckPPAPIDownloadRequest's behavior changes depending on the ...
4 years, 5 months ago (2016-07-14 16:48:15 UTC) #6
Jialiu Lin
Thanks, asanka@! Now this code passes in Profile instead of two booleans. https://codereview.chromium.org/2146703002/diff/40001/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc ...
4 years, 5 months ago (2016-07-14 20:28:35 UTC) #7
asanka
Overall LG. One thing to fix about how we handle Profile*. I didn't look closely, ...
4 years, 5 months ago (2016-07-14 20:44:32 UTC) #8
Jialiu Lin
On 2016/07/14 at 20:44:32, asanka wrote: > Overall LG. One thing to fix about how ...
4 years, 5 months ago (2016-07-14 21:21:20 UTC) #9
Jialiu Lin
thestig@chromium.org: PTAL, need your owner review of chrome/browser/file_select_helper.cc and chrome/test/ppapi/ppapi_filechooser_browsertest.cc Thanks! https://codereview.chromium.org/2146703002/diff/80001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): ...
4 years, 5 months ago (2016-07-14 21:35:41 UTC) #11
Lei Zhang
Will take a look. BTW, the CL description is what shows up in the git ...
4 years, 5 months ago (2016-07-14 23:48:43 UTC) #12
Lei Zhang
lgtm with asanka's approval. https://codereview.chromium.org/2146703002/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2146703002/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc#newcode75 chrome/browser/safe_browsing/download_protection_service.cc:75: namespace { Add some blank ...
4 years, 5 months ago (2016-07-14 23:56:12 UTC) #15
Jialiu Lin
Thanks for your thorough review, thestig@! https://codereview.chromium.org/2146703002/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2146703002/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc#newcode75 chrome/browser/safe_browsing/download_protection_service.cc:75: namespace { On ...
4 years, 5 months ago (2016-07-15 01:20:06 UTC) #16
asanka
LGTM! https://codereview.chromium.org/2146703002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2146703002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1219 chrome/browser/safe_browsing/download_protection_service.cc:1219: is_extended_reporting_ = profile && Minor nit: Just noting ...
4 years, 5 months ago (2016-07-15 14:59:52 UTC) #20
Jialiu Lin
Thanks, asanka@! https://codereview.chromium.org/2146703002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2146703002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1219 chrome/browser/safe_browsing/download_protection_service.cc:1219: is_extended_reporting_ = profile && On 2016/07/15 at ...
4 years, 5 months ago (2016-07-15 22:10:56 UTC) #27
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/2146703002/140001
4 years, 5 months ago (2016-07-18 17:33:28 UTC) #30
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/257508)
4 years, 5 months ago (2016-07-18 19:37:28 UTC) #32
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/2146703002/140001
4 years, 5 months ago (2016-07-18 20:44:44 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 5 months ago (2016-07-18 21:30:53 UTC) #35
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 21:31:08 UTC) #36
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/96f81d5c22a83e5ea061484c7390f37e41816f31 Cr-Commit-Position: refs/heads/master@{#406101}
4 years, 5 months ago (2016-07-18 21:32:19 UTC) #38
Jialiu Lin
4 years, 4 months ago (2016-07-27 16:34:35 UTC) #39
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:140001) has been created in
https://codereview.chromium.org/2182333003/ by jialiul@chromium.org.

The reason for reverting is: high crashing rate on canary
https://crbug.com/630778.

Powered by Google App Engine
This is Rietveld 408576698