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

Issue 23526016: Autoconnect policy for CrOS. (Closed)

Created:
7 years, 3 months ago by pneubeck (no reviews)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, tburkard+watch_chromium.org, gauravsh+watch_chromium.org, gavinp+prer_chromium.org, dominich+watch_chromium.org, eroman, mmenke, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Autoconnect policy for CrOS. This adds an autoconnect policy that disables autoconnect of unmanaged networks. As a device policy this applies to all shared networks. As a user policy it applies to all networks of this user. With this commit the policy is applied on each restart and login. UI lockdown is still missing. Configurations affecting several networks were not supported previously by ONC. Therefore, this commit adds the new toplevel section "GlobalNetworkConfiguration" to ONC. BUG=280146 For API change: R=bartfab@chromium.org TBR=eroman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229910

Patch Set 1 : #

Total comments: 23

Patch Set 2 : Addressed comments. #

Total comments: 2

Patch Set 3 : Fixed comment. #

Patch Set 4 : Renamed policy. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -217 lines) Patch
M chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc View 1 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc View 1 2 3 12 chunks +57 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M chromeos/network/managed_network_configuration_handler.h View 1 1 chunk +11 lines, -9 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.h View 1 5 chunks +16 lines, -12 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 18 chunks +104 lines, -47 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_unittest.cc View 13 chunks +52 lines, -15 lines 0 comments Download
M chromeos/network/mock_managed_network_configuration_handler.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chromeos/network/onc/onc_signature.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_signature.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_utils.h View 1 chunk +7 lines, -5 lines 0 comments Download
M chromeos/network/onc/onc_utils.cc View 2 chunks +10 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_validator.h View 1 1 chunk +7 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_validator.cc View 1 6 chunks +19 lines, -6 lines 0 comments Download
M chromeos/network/onc/onc_validator_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/network/policy_applicator.h View 1 2 5 chunks +15 lines, -4 lines 0 comments Download
M chromeos/network/policy_applicator.cc View 1 2 3 3 chunks +52 lines, -8 lines 0 comments Download
A chromeos/test/data/network/managed_toplevel_with_global_config.onc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A chromeos/test/data/network/policy/policy_disallow_autoconnect.onc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A chromeos/test/data/network/policy/shill_disallow_autoconnect_on_unmanaged_wifi2.json View 1 chunk +8 lines, -0 lines 0 comments Download
M chromeos/test/data/network/policy/shill_managed_wifi1.json View 1 chunk +1 line, -1 line 0 comments Download
D chromeos/test/data/network/policy/shill_policy_on_unmanaged_user_wifi1.json View 1 chunk +0 lines, -10 lines 0 comments Download
D chromeos/test/data/network/policy/shill_policy_on_unmanaged_user_wifi1_wo_uidata.json View 1 chunk +0 lines, -10 lines 0 comments Download
A + chromeos/test/data/network/policy/shill_policy_on_unmanaged_wifi1.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chromeos/test/data/network/policy/shill_policy_on_unmanaged_wifi1_wo_uidata.json View 0 chunks +-1 lines, --1 lines 0 comments Download
D chromeos/test/data/network/policy/shill_unmanaged_user_wifi1.json View 1 chunk +0 lines, -10 lines 0 comments Download
D chromeos/test/data/network/policy/shill_unmanaged_user_wifi1_wo_uidata.json View 1 chunk +0 lines, -9 lines 0 comments Download
D chromeos/test/data/network/policy/shill_unmanaged_user_wifi2.json View 1 chunk +0 lines, -9 lines 0 comments Download
A + chromeos/test/data/network/policy/shill_unmanaged_wifi1.json View 1 chunk +1 line, -1 line 0 comments Download
A + chromeos/test/data/network/policy/shill_unmanaged_wifi1_wo_uidata.json View 1 chunk +1 line, -1 line 0 comments Download
A + chromeos/test/data/network/policy/shill_unmanaged_wifi2.json View 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/test/data/network/repaired_toplevel_partially_invalid.onc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chromeos/test/data/network/toplevel_partially_invalid.onc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M components/onc/onc_constants.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M components/onc/onc_constants.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
pneubeck (no reviews)
Please take a look. Thanks!
7 years, 2 months ago (2013-10-15 10:08:03 UTC) #1
pneubeck (no reviews)
https://codereview.chromium.org/23526016/diff/86001/chromeos/network/policy_applicator.cc File chromeos/network/policy_applicator.cc (right): https://codereview.chromium.org/23526016/diff/86001/chromeos/network/policy_applicator.cc#newcode264 chromeos/network/policy_applicator.cc:264: entry_properties.GetBooleanWithoutPathExpansion(shill::kAutoConnectProperty, if entry doesn't exist, we have to set ...
7 years, 2 months ago (2013-10-16 12:38:19 UTC) #2
bartfab (slow)
https://codereview.chromium.org/23526016/diff/86001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc File chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc (right): https://codereview.chromium.org/23526016/diff/86001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc#newcode116 chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc:116: // Currently, only the per network configuration is stored ...
7 years, 2 months ago (2013-10-16 12:40:30 UTC) #3
pneubeck (no reviews)
https://codereview.chromium.org/23526016/diff/86001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc File chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc (right): https://codereview.chromium.org/23526016/diff/86001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc#newcode116 chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc:116: // Currently, only the per network configuration is stored ...
7 years, 2 months ago (2013-10-17 10:22:26 UTC) #4
pneubeck (no reviews)
@David, FYI
7 years, 2 months ago (2013-10-17 11:48:14 UTC) #5
bartfab (slow)
lgtm with one more nit https://codereview.chromium.org/23526016/diff/86001/chromeos/network/managed_network_configuration_handler_impl.cc File chromeos/network/managed_network_configuration_handler_impl.cc (right): https://codereview.chromium.org/23526016/diff/86001/chromeos/network/managed_network_configuration_handler_impl.cc#newcode110 chromeos/network/managed_network_configuration_handler_impl.cc:110: ~Policies() { STLDeleteValues(&per_network_config); } ...
7 years, 2 months ago (2013-10-17 11:57:58 UTC) #6
David Roche
https://codereview.chromium.org/23526016/diff/108001/chromeos/test/data/network/repaired_toplevel_partially_invalid.onc File chromeos/test/data/network/repaired_toplevel_partially_invalid.onc (right): https://codereview.chromium.org/23526016/diff/108001/chromeos/test/data/network/repaired_toplevel_partially_invalid.onc#newcode51 chromeos/test/data/network/repaired_toplevel_partially_invalid.onc:51: "AllowAutoconnect": false Is the name of this field accurate? ...
7 years, 2 months ago (2013-10-17 18:52:26 UTC) #7
pneubeck (no reviews)
On 2013/10/17 18:52:26, David Roche wrote: > https://codereview.chromium.org/23526016/diff/108001/chromeos/test/data/network/repaired_toplevel_partially_invalid.onc > File chromeos/test/data/network/repaired_toplevel_partially_invalid.onc (right): > > https://codereview.chromium.org/23526016/diff/108001/chromeos/test/data/network/repaired_toplevel_partially_invalid.onc#newcode51 ...
7 years, 2 months ago (2013-10-18 08:01:26 UTC) #8
pneubeck (no reviews)
On 2013/10/18 08:01:26, pneubeck wrote: > On 2013/10/17 18:52:26, David Roche wrote: > > > ...
7 years, 2 months ago (2013-10-18 19:53:23 UTC) #9
David Roche
On 2013/10/18 19:53:23, pneubeck wrote: > On 2013/10/18 08:01:26, pneubeck wrote: > > On 2013/10/17 ...
7 years, 2 months ago (2013-10-19 01:09:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/23526016/197001
7 years, 2 months ago (2013-10-21 18:33:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/23526016/197001
7 years, 2 months ago (2013-10-21 19:29:07 UTC) #12
pneubeck (no reviews)
7 years, 2 months ago (2013-10-21 21:21:15 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r229910 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698