Extract SigninManager::IsUsernameAllowedByPolicy to a free function
This is the first step of those that will allow us remove the dependency from SigninManager::IsAllowedUsername() in the long run, as part of our effort to migrate parts of the code base to the Identity service. Note that this free function will be in the |identity| namespace even if it's actually declared & defined in signin_manager.[h|cc] for now, which should be ok since this is just a temporary situation until we get to a state where SigninManager is not used by any consumers outside //services/identity, at which point we'd simply move it to the public C++ API in there. We can't do it now, though, because doing so would create a dependency cycle as //components/signin would have to depend on //services/identity (which in turn depends on //components/signin). Bug: 906081 Change-Id: I0ec5817661c0cfd27c7a08ef67eae389beff1230 Reviewed-on: https://chromium-review.googlesource.com/c/1344145Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#609998}
Showing
Please register or sign in to comment