Add CredentialManager instance to PasswordController
This CL adds an instance of CredentialManager to PasswordController: * In PasswordController's Init function, it is checked whether the feature is enabled, and then (and only then), CredentialManager is instantiated and owned by PasswordController. CredentialManager then registers a script command callback for "credentials" command prefix. * CredentialManager instance owned by PasswordController is destroyed in PasswordController::detach(), which is invoked when WebState is being destroyed. CredentialManager then removes script command callback. Bug: 435048 Change-Id: Ibad9c09f8c8f0868d940bd0912a861b6120dd1c8 Reviewed-on: https://chromium-review.googlesource.com/652227 Commit-Queue: Tomasz Garbus <tgarbus@chromium.org> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#501258}
Showing
Please register or sign in to comment