Isolate PasswordHashData in BUILD.gn
As pointed out in a chromium-dev discussion [1], PasswordHashData is the only piece of the password_manager component used in //chromeos. However, it is part of a target which ultimately depends on a big chunk of components. This CL therefore isolates the struct to a separate target with no dependencies other than base and crypto. It also ensures that the struct is always initialized and const methods marked as such. Finally, it also moves the older and related SyncPasswordData struct and some helper functions into the new target, to avoid reintroducing the large dependencies through HashPasswordManager. [1] https://groups.google.com/a/chromium.org/d/msg/chromium-dev/nX63vp-75_U/h7H19i9dAQAJ Bug: 850931 Change-Id: I0733f46bbc924bf63c43ff3cf25b148c2baef8e8 Reviewed-on: https://chromium-review.googlesource.com/1092863 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#566380}
Showing
Please register or sign in to comment