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

Issue 2754903002: Prevent networkingPrivate.forgetNetwork from removing shared configs (Closed)

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

Description

Prevent networkingPrivate.forgetNetwork from removing shared configs Changes networkingPrivate.forgetNetwork so it only removes network configs from user network profile, and keeps shared profile intact. This is part of the effort to restrict networkingPrivate API network config changes from affecting non-kiosk users sessions once the API is opened up to kiosk sessions. Note that networking Web UI behavior should stay the same - when the API function is called from the Web UI context, the network's configs should be removed from all profiles that contain the network service. While here, prevent the API from removing policy controlled configs (to be consistent with the UX defined in network settings, where policy controlled configs are not allowed to be forgotten). In order to properly test the behavior, the patch updates fake shill service and profile clients to better handle network services defined in multiple profiles: * FakeShilProfileClient::GetService now applies both shared and user profile properties, setting profile path to user profile if the user profile contains the service * FakeShillServiceClient::GetLoadableProfileEntries now reports all profiles that contain an entry for the service, rather than just the profile to which service's profile_path is set. BUG=700131, 705024 TBR=blundell@chromium.org (for components/sync_wifi) Review-Url: https://codereview.chromium.org/2754903002 Cr-Commit-Position: refs/heads/master@{#460936} Committed: https://chromium.googlesource.com/chromium/src/+/d0203954892c94a15b4f5843bdc519b2be81f0bc

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : new profile fakes #

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+589 lines, -82 lines) Patch
M chrome/browser/extensions/api/networking_private/networking_private_apitest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 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 1 chunk +14 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_shill_profile_client.h View 1 2 3 4 4 chunks +13 lines, -3 lines 0 comments Download
M chromeos/dbus/fake_shill_profile_client.cc View 1 2 3 4 5 6 4 chunks +49 lines, -21 lines 0 comments Download
M chromeos/dbus/fake_shill_service_client.cc View 1 1 chunk +11 lines, -13 lines 0 comments Download
M chromeos/dbus/shill_profile_client.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chromeos/network/mock_managed_network_configuration_handler.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/network/network_configuration_handler.h View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M chromeos/network/network_configuration_handler.cc View 1 2 7 chunks +54 lines, -1 line 0 comments Download
M chromeos/network/network_configuration_handler_unittest.cc View 1 2 21 chunks +176 lines, -37 lines 0 comments Download
M components/sync_wifi/wifi_config_delegate_chromeos_unittest.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_api.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos.cc View 1 2 3 4 5 6 2 chunks +45 lines, -3 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos_unittest.cc View 1 2 3 4 5 6 2 chunks +128 lines, -4 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_service_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_service_client.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
tbarzic
Can you please take a look. I checked shill code, and it looks like it ...
3 years, 8 months ago (2017-03-28 23:40:22 UTC) #7
stevenjb
Just went through the fake shill changes so far. https://codereview.chromium.org/2754903002/diff/60001/chromeos/dbus/fake_shill_profile_client.cc File chromeos/dbus/fake_shill_profile_client.cc (right): https://codereview.chromium.org/2754903002/diff/60001/chromeos/dbus/fake_shill_profile_client.cc#newcode226 chromeos/dbus/fake_shill_profile_client.cc:226: ...
3 years, 8 months ago (2017-03-29 00:06:46 UTC) #8
tbarzic
https://codereview.chromium.org/2754903002/diff/60001/chromeos/dbus/fake_shill_profile_client.cc File chromeos/dbus/fake_shill_profile_client.cc (right): https://codereview.chromium.org/2754903002/diff/60001/chromeos/dbus/fake_shill_profile_client.cc#newcode226 chromeos/dbus/fake_shill_profile_client.cc:226: } On 2017/03/29 00:06:45, stevenjb wrote: > blank line ...
3 years, 8 months ago (2017-03-29 01:48:50 UTC) #10
stevenjb
https://codereview.chromium.org/2754903002/diff/100001/chromeos/dbus/fake_shill_profile_client.cc File chromeos/dbus/fake_shill_profile_client.cc (right): https://codereview.chromium.org/2754903002/diff/100001/chromeos/dbus/fake_shill_profile_client.cc#newcode139 chromeos/dbus/fake_shill_profile_client.cc:139: } nit: We shouldn't need to support multiple shared ...
3 years, 8 months ago (2017-03-30 17:33:14 UTC) #14
tbarzic
https://codereview.chromium.org/2754903002/diff/100001/chromeos/dbus/fake_shill_profile_client.cc File chromeos/dbus/fake_shill_profile_client.cc (right): https://codereview.chromium.org/2754903002/diff/100001/chromeos/dbus/fake_shill_profile_client.cc#newcode139 chromeos/dbus/fake_shill_profile_client.cc:139: } On 2017/03/30 17:33:13, stevenjb wrote: > nit: We ...
3 years, 8 months ago (2017-03-30 18:00:05 UTC) #15
stevenjb
lgtm
3 years, 8 months ago (2017-03-30 18:02:15 UTC) #16
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/2754903002/120001
3 years, 8 months ago (2017-03-30 18:15:31 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/398939)
3 years, 8 months ago (2017-03-30 18:30:34 UTC) #20
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/2754903002/120001
3 years, 8 months ago (2017-03-30 20:34:21 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/d0203954892c94a15b4f5843bdc519b2be81f0bc
3 years, 8 months ago (2017-03-30 23:53:09 UTC) #27
blundell
3 years, 8 months ago (2017-03-31 08:52:49 UTC) #28
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698