Improve SaveCredentials handling in VPN UI
When persisting credential fields in UIData to shill, distinguish between the cases 'no credential saved' (empty string will be written) and 'some credential saved' (kFakeCredential will be written). A comment mentions that this should be done, but it has not been done yet. With this in place, the network config UI displays empty password field if no credential has been saved or some number of asterisk if some credential has been saved. Also fix "Save identity and password" not being populated from SaveCredentials due to managedProperties.typeProperties.vpn.type being treated as having a sub-field 'value' while it's a plain enum. Bug: 1103234 Change-Id: I301ea1290785c3260c372d21b36b3aa08597b9c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450274 Commit-Queue: Pavol Marko <pmarko@chromium.org> Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#816334}
Showing
Please register or sign in to comment