No static destructors in IsCreditCardVerificationPasswordField
Currently, IsCreditCardVerificationPasswordField creates a static string16 object. That involves a static destructor, which is forbidden by the style guide: https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables This CL fixes that by using base::NoDestructor. It also restructures the function slightly. There should be no visible change caused by this CL. Bug: 833838 Change-Id: Id879c5595113aae295e858bebf6cacc7f211b373 Reviewed-on: https://chromium-review.googlesource.com/1028272 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Sebastien Seguin-Gagnon <sebsg@chromium.org> Cr-Commit-Position: refs/heads/master@{#553797}
Showing
Please register or sign in to comment