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

Issue 1909653002: FileTypePolicies class to load types from proto. (Closed)

Created:
4 years, 8 months ago by Nathan Parker
Modified:
4 years, 8 months ago
Reviewers:
Jialiu Lin
CC:
arv+watch_chromium.org, asanka, 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

FileTypePolicies class to load types from proto. There will be a single instance of this owned by the SafeBrowsingService, and updated periodically via a component update. BUG=596555 Committed: https://crrev.com/db0171fd53ec52c6326c40478c3a9feed1407c45 Cr-Commit-Position: refs/heads/master@{#389703}

Patch Set 1 #

Patch Set 2 : Fix up comments, add more tests #

Total comments: 3

Patch Set 3 : Fix typo in test #

Patch Set 4 : Fix windows' complaints about double->float conversion #

Total comments: 9

Patch Set 5 : changes per jialiul, and set upstream CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -4 lines) Patch
M chrome/browser/resources/safe_browsing/download_file_types.asciipb View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/safe_browsing/gen_file_type_proto.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/safe_browsing/file_type_policies.h View 1 2 3 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/common/safe_browsing/file_type_policies.cc View 1 2 3 4 1 chunk +155 lines, -0 lines 0 comments Download
A chrome/common/safe_browsing/file_type_policies_unittest.cc View 1 2 3 1 chunk +116 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 11 (3 generated)
Nathan Parker
4 years, 8 months ago (2016-04-20 20:33:13 UTC) #2
Jialiu Lin
A couple of nits, though 5 try bots are not happy right now. I'll check ...
4 years, 8 months ago (2016-04-22 21:36:41 UTC) #3
Nathan Parker
https://codereview.chromium.org/1909653002/diff/20001/chrome/browser/resources/safe_browsing/gen_file_type_proto.py File chrome/browser/resources/safe_browsing/gen_file_type_proto.py (right): https://codereview.chromium.org/1909653002/diff/20001/chrome/browser/resources/safe_browsing/gen_file_type_proto.py#newcode25 chrome/browser/resources/safe_browsing/gen_file_type_proto.py:25: ifile = open(opts.infile, 'rb') On 2016/04/22 21:36:41, JialiuLin wrote: ...
4 years, 8 months ago (2016-04-25 22:39:20 UTC) #4
Jialiu Lin
LGTM https://codereview.chromium.org/1909653002/diff/60001/chrome/common/safe_browsing/file_type_policies.cc File chrome/common/safe_browsing/file_type_policies.cc (right): https://codereview.chromium.org/1909653002/diff/60001/chrome/common/safe_browsing/file_type_policies.cc#newcode143 chrome/common/safe_browsing/file_type_policies.cc:143: return PolicyForFile(file).platform_settings(0); On 2016/04/25 at 22:39:20, Nathan Parker ...
4 years, 8 months ago (2016-04-25 23:26:48 UTC) #5
Nathan Parker
The dependent patch finally landed, and I think it'll stick, so I'm submitting.
4 years, 8 months ago (2016-04-26 04:17:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909653002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909653002/80001
4 years, 8 months ago (2016-04-26 04:18:00 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-26 05:15:39 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 05:16:32 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/db0171fd53ec52c6326c40478c3a9feed1407c45
Cr-Commit-Position: refs/heads/master@{#389703}

Powered by Google App Engine
This is Rietveld 408576698