Do not start SmbService if disallowed by policy
This change adds a check for the NetworkFileSharesAllowed policy when starting up SmbService. If the policy is set to false, meaning that Network File Shares should not be allowed, SmbService will not be registered with the FSP, removing the entry point from the "Add new services" menu in the Files App. Additionally, since the Settings UI picks up policy changes on the fly but the NetworkFileSharesAllowed policy does not support dynamic refresh, SmbService respects the state of the policy at login. Bug: 757625 Test: verified by setting policy locally. Change-Id: I2d7cc147e51b584255679a00f233750f1b8cb4fe Reviewed-on: https://chromium-review.googlesource.com/1153488Reviewed-by:Scott Chen <scottchen@chromium.org> Reviewed-by:
Zentaro Kavanagh <zentaro@chromium.org> Commit-Queue: Bailey Berro <baileyberro@chromium.org> Cr-Commit-Position: refs/heads/master@{#585192}
Showing
Please register or sign in to comment