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

Issue 2767253006: Set HexSSID in network config before matching it against policies (Closed)

Created:
3 years, 9 months ago by tbarzic
Modified:
3 years, 8 months ago
Reviewers:
stevenjb, Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Set HexSSID in network config before matching it against policies When creating a new network configuration, the config is matched against existing, policy configured configs. If the network is already configured, network configuration should fail. The problem is that policy matching compares network SSIDs using HexSSID property, which was not required in the new network config (network configuration creation would succeed with only SSID set). This CL ensures that the HexSSID property gets populated before matching the configuration against existing policies. Also, it adds a step for verifying the user defined oncconfiguration (in particular that property types are properly set). BUG=705024 Review-Url: https://codereview.chromium.org/2767253006 Cr-Commit-Position: refs/heads/master@{#460018} Committed: https://chromium.googlesource.com/chromium/src/+/8000869bbcac8cfd3e24de549d8cf07547d152a5

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 1

Patch Set 5 : check user policy only for non-empty userhash #

Total comments: 2

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : more tests #

Patch Set 9 : . #

Total comments: 2

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Total comments: 4

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -30 lines) Patch
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking_private/chromeos/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 2 3 4 5 2 chunks +47 lines, -3 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +208 lines, -27 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
tbarzic
https://codereview.chromium.org/2767253006/diff/60001/chromeos/network/managed_network_configuration_handler_impl.cc File chromeos/network/managed_network_configuration_handler_impl.cc (right): https://codereview.chromium.org/2767253006/diff/60001/chromeos/network/managed_network_configuration_handler_impl.cc#newcode398 chromeos/network/managed_network_configuration_handler_impl.cc:398: policies = GetPoliciesForUser(""); I'm not 100% sure this is ...
3 years, 9 months ago (2017-03-24 19:35:18 UTC) #4
stevenjb
This seems reasonable, but I think we need to add coverage to networking_private_chromeos_apitest. Specifically, I ...
3 years, 9 months ago (2017-03-24 20:23:06 UTC) #5
tbarzic
On 2017/03/24 20:23:06, stevenjb wrote: > This seems reasonable, but I think we need to ...
3 years, 9 months ago (2017-03-24 21:01:16 UTC) #6
stevenjb
On 2017/03/24 21:01:16, tbarzic wrote: > On 2017/03/24 20:23:06, stevenjb wrote: > > This seems ...
3 years, 9 months ago (2017-03-24 21:18:58 UTC) #7
tbarzic
On 2017/03/24 21:18:58, stevenjb wrote: > On 2017/03/24 21:01:16, tbarzic wrote: > > On 2017/03/24 ...
3 years, 9 months ago (2017-03-24 23:58:04 UTC) #8
tbarzic
On 2017/03/24 23:58:04, tbarzic wrote: > On 2017/03/24 21:18:58, stevenjb wrote: > > On 2017/03/24 ...
3 years, 9 months ago (2017-03-27 17:50:38 UTC) #9
stevenjb
Thanks for the extra tests! lgtm. https://codereview.chromium.org/2767253006/diff/160001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js File chrome/test/data/extensions/api_test/networking_private/chromeos/test.js (right): https://codereview.chromium.org/2767253006/diff/160001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js#newcode904 chrome/test/data/extensions/api_test/networking_private/chromeos/test.js:904: }, nit: move ...
3 years, 9 months ago (2017-03-27 18:01:34 UTC) #10
tbarzic
https://codereview.chromium.org/2767253006/diff/80001/chromeos/network/managed_network_configuration_handler_impl.cc File chromeos/network/managed_network_configuration_handler_impl.cc (right): https://codereview.chromium.org/2767253006/diff/80001/chromeos/network/managed_network_configuration_handler_impl.cc#newcode384 chromeos/network/managed_network_configuration_handler_impl.cc:384: // Make user the network is not configured through ...
3 years, 9 months ago (2017-03-27 18:32:33 UTC) #11
tbarzic
Had to add a (direct) dependency for unit_tests -> components/onc to make trybots pass, so ...
3 years, 9 months ago (2017-03-27 19:12:44 UTC) #19
Devlin
extensions/browser/BUILD.gn lgtm https://codereview.chromium.org/2767253006/diff/240001/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc File chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc (right): https://codereview.chromium.org/2767253006/diff/240001/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc#newcode556 chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc:556: "{ \"NetworkConfigurations\": [" Optional drive-by: This seems ...
3 years, 8 months ago (2017-03-28 01:34:40 UTC) #22
tbarzic
https://codereview.chromium.org/2767253006/diff/240001/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc File chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc (right): https://codereview.chromium.org/2767253006/diff/240001/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc#newcode556 chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc:556: "{ \"NetworkConfigurations\": [" On 2017/03/28 01:34:40, Devlin wrote: > ...
3 years, 8 months ago (2017-03-28 04:00:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767253006/330001
3 years, 8 months ago (2017-03-28 04:37:28 UTC) #26
commit-bot: I haz the power
Committed patchset #18 (id:330001) as https://chromium.googlesource.com/chromium/src/+/8000869bbcac8cfd3e24de549d8cf07547d152a5
3 years, 8 months ago (2017-03-28 05:42:58 UTC) #29
mdjones
3 years, 8 months ago (2017-03-28 16:39:43 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #18 id:330001) has been created in
https://codereview.chromium.org/2776403002/ by mdjones@chromium.org.

The reason for reverting is: Breaking content_browsertests on Marshmallow 64 bit
tester:
https://uberchromegw.corp.google.com/i/chromium.android/builders/Marshmallow%....

Powered by Google App Engine
This is Rietveld 408576698