Small cleanups in PasswordSaveManagerImpl
- Extract a new SetVotesForPendingCredentials() out of CreatePendingCredentials(). - Remove "update" param from SavePendingToStore() since it can be inferred from pending_credentials_state_. - Merge ProcessUpdate() together with corresponding code for the IsNewLogin() case into a new SetVotesAndRecordMetricsForPendingCredentials(). - Call UploadVotesAndMetrics() from within SavePendingToStore(), rather than at its call sites. No behavior changes. Bug: 1067194 Change-Id: Ib85a35de9a44b6ec362442351416b27368243cd6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2134007 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/heads/master@{#756262}
Showing
Please register or sign in to comment