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

Issue 1431563005: Handle prohibited technologies in device policy ONC (Closed)

Created:
5 years, 1 month ago by fqj
Modified:
5 years, 1 month ago
Reviewers:
stevenjb
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, cschuet (SLOW)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle prohibited technologies in device policy ONC This commit changes prohibited technologies from user policy ONC to device policy ONC, and then handles it. The device policy ONC will only take effect after user session starts. After use has logged in, the prohibited technologies in ONC will take effect and disable and prohibit specific technologies. BUG=426390 Committed: https://crrev.com/fee5067aaad72d7b0525d23d5f6eb2500831feab Cr-Commit-Position: refs/heads/master@{#359602}

Patch Set 1 #

Patch Set 2 : use loginstate and wait for user policy #

Patch Set 3 : tests #

Patch Set 4 : remove dependencies for NetworkHandler in ShillPropertyHandlerTest.ProhibitedTechnologies #

Total comments: 11

Patch Set 5 : #

Patch Set 6 : #

Total comments: 33

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : enable ethernet back when necessary as user doesn't have a button to enable ethernet #

Patch Set 10 : fix comment #

Patch Set 11 : #

Total comments: 13

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : rebase #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -26 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/auto_connect_handler_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.h View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 2 3 4 5 6 3 chunks +17 lines, -1 line 0 comments Download
M chromeos/network/managed_network_configuration_handler_unittest.cc View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M chromeos/network/network_connection_handler_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/network_handler.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/network_handler.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -4 lines 0 comments Download
M chromeos/network/network_profile_handler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_state_handler.h View 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M chromeos/network/onc/onc_validator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
A chromeos/network/prohibited_technologies_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +59 lines, -0 lines 0 comments Download
A chromeos/network/prohibited_technologies_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +112 lines, -0 lines 0 comments Download
A chromeos/network/prohibited_technologies_handler_unittest.cc View 1 2 3 4 5 6 1 chunk +190 lines, -0 lines 0 comments Download
M chromeos/network/shill_property_handler.h View 1 2 3 4 4 chunks +11 lines, -0 lines 0 comments Download
M chromeos/network/shill_property_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +39 lines, -2 lines 0 comments Download
M chromeos/network/shill_property_handler_unittest.cc View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
fqj
PTAL.
5 years, 1 month ago (2015-11-10 14:43:46 UTC) #4
fqj
PTAL.
5 years, 1 month ago (2015-11-10 14:43:47 UTC) #5
stevenjb
I would really prefer to avoid adding this much complexity to ShillPropertyHandler. SPH should not ...
5 years, 1 month ago (2015-11-10 21:40:21 UTC) #6
fqj
PTAL https://codereview.chromium.org/1431563005/diff/60001/chromeos/network/managed_network_configuration_handler_impl.cc File chromeos/network/managed_network_configuration_handler_impl.cc (right): https://codereview.chromium.org/1431563005/diff/60001/chromeos/network/managed_network_configuration_handler_impl.cc#newcode435 chromeos/network/managed_network_configuration_handler_impl.cc:435: DCHECK_EQ(::onc::ONC_SOURCE_DEVICE_POLICY, onc_source); On 2015/11/10 21:40:21, stevenjb wrote: > ...
5 years, 1 month ago (2015-11-11 16:53:55 UTC) #7
stevenjb
This is much more clear, thanks. https://codereview.chromium.org/1431563005/diff/60001/chromeos/network/managed_network_configuration_handler_impl.cc File chromeos/network/managed_network_configuration_handler_impl.cc (right): https://codereview.chromium.org/1431563005/diff/60001/chromeos/network/managed_network_configuration_handler_impl.cc#newcode435 chromeos/network/managed_network_configuration_handler_impl.cc:435: DCHECK_EQ(::onc::ONC_SOURCE_DEVICE_POLICY, onc_source); On ...
5 years, 1 month ago (2015-11-11 18:07:31 UTC) #8
fqj
PTAL https://codereview.chromium.org/1431563005/diff/100001/chromeos/network/managed_network_configuration_handler_impl.cc File chromeos/network/managed_network_configuration_handler_impl.cc (right): https://codereview.chromium.org/1431563005/diff/100001/chromeos/network/managed_network_configuration_handler_impl.cc#newcode439 chromeos/network/managed_network_configuration_handler_impl.cc:439: // Build up prohibited network type list and ...
5 years, 1 month ago (2015-11-12 10:23:02 UTC) #9
stevenjb
https://codereview.chromium.org/1431563005/diff/100001/chromeos/network/shill_property_handler.cc File chromeos/network/shill_property_handler.cc (right): https://codereview.chromium.org/1431563005/diff/100001/chromeos/network/shill_property_handler.cc#newcode164 chromeos/network/shill_property_handler.cc:164: technology); On 2015/11/12 10:23:01, fqj wrote: > On 2015/11/11 ...
5 years, 1 month ago (2015-11-12 18:20:38 UTC) #10
fqj
PTAL. https://codereview.chromium.org/1431563005/diff/200001/chromeos/network/prohibited_technologies_handler.cc File chromeos/network/prohibited_technologies_handler.cc (right): https://codereview.chromium.org/1431563005/diff/200001/chromeos/network/prohibited_technologies_handler.cc#newcode14 chromeos/network/prohibited_technologies_handler.cc:14: ProhibitedTechnologiesHandler::ProhibitedTechnologiesHandler(){}; On 2015/11/12 18:20:38, stevenjb wrote: > ' ...
5 years, 1 month ago (2015-11-13 13:53:49 UTC) #11
stevenjb
lgtm https://codereview.chromium.org/1431563005/diff/200001/chromeos/network/prohibited_technologies_handler.cc File chromeos/network/prohibited_technologies_handler.cc (right): https://codereview.chromium.org/1431563005/diff/200001/chromeos/network/prohibited_technologies_handler.cc#newcode85 chromeos/network/prohibited_technologies_handler.cc:85: enable_ethernet = false; On 2015/11/13 13:53:49, fqj wrote: ...
5 years, 1 month ago (2015-11-13 18:26:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431563005/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431563005/280001
5 years, 1 month ago (2015-11-13 19:38:48 UTC) #15
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 1 month ago (2015-11-13 20:13:07 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-13 20:14:29 UTC) #17
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/fee5067aaad72d7b0525d23d5f6eb2500831feab
Cr-Commit-Position: refs/heads/master@{#359602}

Powered by Google App Engine
This is Rietveld 408576698