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

Issue 788633003: chromeos networking: move from security to securityclass property (Closed)

Created:
6 years ago by mukesh agrawal
Modified:
5 years, 11 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@local-master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos networking: move from security to securityclass property Adopt shill's kSecurityClassProperty, in place of shill's kSecurityProperty. This eliminates the need for Chrome to understand the equivalence of WPA and RSN networks. This CL introduces only one functional change. Namely, NetworkState::GetSpecifier will now collapse WPA and RSN networks into one class (by virtue of using kSecurityClassProperty). The previous behavior is considered a bug. After this CL, only WifiAccessPointInfoProviderChromeOs still uses kSecurityProperty. In that one case, we want to break out WPA and RSN networks, to understand what fraction of systems are connecting through older APs. While there: remove a couple of unused files in chromeos/test/data/network/policy/. BUG=chromium:440032 TEST=ManagedNetworkConfigurationHandlerTest.* TEST=ONC* Committed: https://crrev.com/9bb8d4e41faf758814fbb1fa89771d6f09a045e9 Cr-Commit-Position: refs/heads/master@{#310840}

Patch Set 1 #

Total comments: 4

Patch Set 2 : eliminate stale comment #

Patch Set 3 : clean up more references to NetworkState::security() and shill::kSecurityProperty #

Patch Set 4 : remove a reference to NetworkState::security() in athena #

Patch Set 5 : update tests #

Patch Set 6 : nuke unused files #

Patch Set 7 : update wifi_sync component to use security_class() #

Total comments: 1

Patch Set 8 : simplify CopyIdenitifyingProperties #

Patch Set 9 : rebase, resolve conflicts, update new test data (shill_wifi_dhcp.json) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -168 lines) Patch
M athena/system/network_selector.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_shill_manager_client.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chromeos/dbus/fake_shill_service_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/shill_client_unittest_base.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/managed_network_configuration_handler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -36 lines 0 comments Download
M chromeos/network/network_cert_migrator.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_cert_migrator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_connection_handler.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M chromeos/network/network_state.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M chromeos/network/network_state_handler_unittest.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M chromeos/network/onc/onc_translation_tables.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chromeos/network/onc/onc_translator_onc_to_shill.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/onc/onc_translator_shill_to_onc.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chromeos/network/onc/onc_translator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chromeos/network/shill_property_util.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -19 lines 0 comments Download
M chromeos/test/data/network/policy/shill_disallow_autoconnect_on_unmanaged_wifi2.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D chromeos/test/data/network/policy/shill_managed_wifi1_rsn.json View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
M chromeos/test/data/network/policy/shill_policy_autoconnect_on_unconfigured_wifi1.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/policy/shill_policy_on_unconfigured_wifi1.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/policy/shill_policy_on_unmanaged_wifi1.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D chromeos/test/data/network/policy/shill_policy_on_unmanaged_wifi1_wo_uidata.json View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M chromeos/test/data/network/policy/shill_unmanaged_wifi1.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D chromeos/test/data/network/policy/shill_unmanaged_wifi1_wo_uidata.json View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M chromeos/test/data/network/policy/shill_unmanaged_wifi2.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/shill_wifi_clientcert.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/shill_wifi_clientref.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/shill_wifi_dhcp.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/shill_wifi_psk.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/test/data/network/shill_wifi_with_state.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D chromeos/test/data/network/shill_wifi_wpa1.json View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
D chromeos/test/data/network/translation_of_shill_wifi_wpa1.onc View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M components/wifi_sync/network_state_helper_chromeos.cc View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M ui/chromeos/network/network_connect.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/chromeos/network/network_icon.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/chromeos/network/network_state_notifier_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (11 generated)
mukesh agrawal
I'm having no luck with the tryservers (maybe a permissions issue?), so I figure I'll ...
6 years ago (2014-12-08 21:19:54 UTC) #1
mukesh agrawal
6 years ago (2014-12-08 21:20:26 UTC) #3
stevenjb
Assuming that Shill accepts SecurityClass for configuration, and there are no remaining references to shill::kSecurity ...
6 years ago (2014-12-08 22:27:21 UTC) #4
mukesh agrawal
Sorry... I forgot to separate out the rebase from the fix. The only file with ...
6 years ago (2014-12-16 22:07:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788633003/20001
6 years ago (2014-12-16 22:07:43 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/8495)
6 years ago (2014-12-16 22:43:24 UTC) #9
mukesh agrawal
On 2014/12/16 22:43:24, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years ago (2014-12-17 01:23:19 UTC) #10
mukesh agrawal
stevenjb/pneubeck ----------------- Could one of you take another look? It turns out I'd missed some ...
6 years ago (2014-12-17 23:26:17 UTC) #11
oshima
athena lgtm
6 years ago (2014-12-18 12:02:12 UTC) #14
stevenjb (google-dont-use)
LGTM
6 years ago (2014-12-22 18:44:45 UTC) #16
stevenjb
lgtm
6 years ago (2014-12-23 19:26:14 UTC) #19
pneubeck (no reviews)
The commit message incorrectly mentions a kSecurityClass instead of kSecurityProperty.
5 years, 11 months ago (2015-01-04 17:07:05 UTC) #20
pneubeck (no reviews)
lgtm with one minor comment https://codereview.chromium.org/788633003/diff/120001/chromeos/network/shill_property_util.cc File chromeos/network/shill_property_util.cc (right): https://codereview.chromium.org/788633003/diff/120001/chromeos/network/shill_property_util.cc#newcode250 chromeos/network/shill_property_util.cc:250: shill::kSecurityClassProperty, &security_class); can be ...
5 years, 11 months ago (2015-01-04 20:47:40 UTC) #21
pneubeck (no reviews)
thanks for this simplification!
5 years, 11 months ago (2015-01-05 16:55:11 UTC) #22
erikwright (departed)
components/ LGTM
5 years, 11 months ago (2015-01-09 15:00:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788633003/140001
5 years, 11 months ago (2015-01-09 18:22:17 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/111890) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/108617) android_aosp ...
5 years, 11 months ago (2015-01-09 18:28:09 UTC) #27
mukesh agrawal
Conflicts were in - chromeos/network/network_cert_migrator.cc - chromeos/network/onc/onc_translator_onc_to_shill.cc Both conflict resolutions were straight-forward.
5 years, 11 months ago (2015-01-09 19:28:00 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788633003/160001
5 years, 11 months ago (2015-01-09 19:29:09 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 11 months ago (2015-01-09 20:13:49 UTC) #31
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 20:15:20 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9bb8d4e41faf758814fbb1fa89771d6f09a045e9
Cr-Commit-Position: refs/heads/master@{#310840}

Powered by Google App Engine
This is Rietveld 408576698