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

Issue 1714473002: Add usb_detachable_whitelist to device policy proto (Closed)

Created:
4 years, 10 months ago by Vincent Palatin
Modified:
4 years, 9 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org, dskaram
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add usb_detachable_whitelist to device policy proto The |usb_detachable_whitelist| setting contains the list of USB devices (identified by their USB VID:PID pairs) which can be detached from the kernel drivers in order to use them in web application. The list is used by the permission_broker daemon. BUG=chrome-os-partner:50249 TEST=none Committed: https://crrev.com/1d50972a183cf34e6c1310d318f6af0981a52218 Cr-Commit-Position: refs/heads/master@{#380475}

Patch Set 1 #

Patch Set 2 : update field name #

Total comments: 2

Patch Set 3 : Update the policy_templates.json file and the policy decoder code #

Total comments: 19

Patch Set 4 : fix BartFab comments on patchset 2 #

Patch Set 5 : update decoder output #

Total comments: 2

Patch Set 6 : display VID:PID as dictionary, remove (maybe) unsupported hex number from JSON #

Patch Set 7 : rebased / incremented IDs to account for intermediate commits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -1 line) Patch
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proto/chrome_device_policy.proto View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 2 chunks +37 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 41 (14 generated)
vpalatin
ping anybody ?
4 years, 9 months ago (2016-02-27 01:08:31 UTC) #4
bartfab (slow)
IIUC, this proto will be consumed by a daemon, not by Chrome. However, you should ...
4 years, 9 months ago (2016-02-29 12:20:31 UTC) #5
bartfab (slow)
One thing I forgot: If I understand correctly and the daemon reads the proto directly ...
4 years, 9 months ago (2016-02-29 12:23:14 UTC) #6
Mattias Nissler (ping if slow)
On 2016/02/29 12:23:14, bartfab (slow) wrote: > One thing I forgot: If I understand correctly ...
4 years, 9 months ago (2016-02-29 12:35:21 UTC) #7
Mattias Nissler (ping if slow)
On 2016/02/29 12:23:14, bartfab (slow) wrote: > One thing I forgot: If I understand correctly ...
4 years, 9 months ago (2016-02-29 12:35:24 UTC) #8
bartfab (slow)
On 2016/02/29 12:35:24, Mattias (ping if no reply) wrote: > On 2016/02/29 12:23:14, bartfab (slow) ...
4 years, 9 months ago (2016-02-29 13:07:51 UTC) #9
vpalatin
Ok I will try to update the .json file and the policy decoder. I'm not ...
4 years, 9 months ago (2016-03-01 01:42:17 UTC) #10
vpalatin
https://codereview.chromium.org/1714473002/diff/40001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1714473002/diff/40001/components/policy/resources/policy_templates.json#newcode8210 components/policy/resources/policy_templates.json:8210: 'id': 317, I'm not sure what id I'm supposed ...
4 years, 9 months ago (2016-03-01 01:54:23 UTC) #11
bartfab (slow)
https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode834 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:834: uint16_t vid = entry->has_vendor_id() ? entry->vendor_id() : 0x0000; Nit: ...
4 years, 9 months ago (2016-03-01 14:49:58 UTC) #12
vpalatin
https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode834 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:834: uint16_t vid = entry->has_vendor_id() ? entry->vendor_id() : 0x0000; On ...
4 years, 9 months ago (2016-03-01 17:49:01 UTC) #13
bartfab (slow)
https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode837 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:837: new base::StringValue(base::StringPrintf("%04x:%04x", vid, pid))); On 2016/03/01 17:49:01, vpalatin wrote: ...
4 years, 9 months ago (2016-03-02 10:40:33 UTC) #14
chromium-reviews
On Wed, Mar 2, 2016 at 2:40 AM, <bartfab@chromium.org> wrote: > > > https://codereview.chromium.org/1714473002/diff/40001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc > ...
4 years, 9 months ago (2016-03-02 18:24:35 UTC) #15
vpalatin
PTAL
4 years, 9 months ago (2016-03-04 18:13:27 UTC) #16
bartfab (slow)
https://codereview.chromium.org/1714473002/diff/80001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1714473002/diff/80001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode835 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:835: const std::string vid = Sorry for the many nits: ...
4 years, 9 months ago (2016-03-07 11:16:47 UTC) #17
vpalatin
https://codereview.chromium.org/1714473002/diff/80001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1714473002/diff/80001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode835 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:835: const std::string vid = On 2016/03/07 11:16:47, bartfab (slow) ...
4 years, 9 months ago (2016-03-07 16:38:28 UTC) #18
bartfab (slow)
LGTM. Thanks for bearing through the reviews.
4 years, 9 months ago (2016-03-10 12:32:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714473002/100001
4 years, 9 months ago (2016-03-10 15:19:01 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/143103) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-10 15:21:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714473002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714473002/120001
4 years, 9 months ago (2016-03-10 18:02:44 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/155446)
4 years, 9 months ago (2016-03-10 18:12:22 UTC) #28
vpalatin
Mark P, Can you review the histograms.xml change ?
4 years, 9 months ago (2016-03-10 18:13:28 UTC) #30
Mark P
histograms.xml lgtm
4 years, 9 months ago (2016-03-10 18:19:48 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714473002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714473002/120001
4 years, 9 months ago (2016-03-10 18:20:43 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/194744)
4 years, 9 months ago (2016-03-10 19:42:31 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714473002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714473002/120001
4 years, 9 months ago (2016-03-10 21:21:55 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-10 22:00:03 UTC) #39
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 22:00:57 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1d50972a183cf34e6c1310d318f6af0981a52218
Cr-Commit-Position: refs/heads/master@{#380475}

Powered by Google App Engine
This is Rietveld 408576698