|
|
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
Total comments: 6
Total comments: 4
|
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
|
Total messages: 28 (17 generated)
|