Fix AutoConnectHandler for AllowOnlyPolicyNetworksTo[Auto]Connect
Fix1: If either AllowOnlyPolicyNetworksToConnect or AllowOnlyPolicyNetworksToAutoconnect is enabled, this CL will additionally remove the network configurations (AllowOnlyPolicyNetworksToConnect) or disable auto-connect (for AllowOnlyPolicyNetworksToAutoconnect) for the unmanaged networks to prevent Shill from re-connecting when searching for a best service to connect. Fix2: Fixed missing disconnect, when AllowOnlyPolicyNetworksToConnect gets enabled. This disconnect was incorrectly prevented by the |applied_autoconnect_policy_| boolean before, which ensures that the disconnect on AllowOnlyPolicyNetworksToAutoconnect only happens once. Bug: 850550 Change-Id: I869ed49d58adb82707e8856e896c5a141f6f6625 Reviewed-on: https://chromium-review.googlesource.com/1091051Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Commit-Queue: Alexander Hendrich <hendrich@chromium.org> Cr-Commit-Position: refs/heads/master@{#567199}
Showing
Please register or sign in to comment