Add metric recorder into constructor parameters of NewPasswordForManager.
Before this CL, during cloning the new metric recorder was created and then it was overwritten with the old one. That leads to many extra metric sending (each recorder sends metrics separately). This CL fixes this to adding metric recorder to the constructor, so it's possible to reuse existing metric recorder. It's very similar to PasswordFormManager implementation, but then it's done with a separate Init() function, but it's easier to add this in constructor in order to have the consistent object after constructor call, since anyway the recorder must be created. Bug: 831123 Change-Id: Id46dee6aee4ae30686f1190884db05e25f26113b Reviewed-on: https://chromium-review.googlesource.com/c/1288437 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by:Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#600855}
Showing
Please register or sign in to comment