Move function to util (components/password_manager/)

When building using jumbo, files gets merged and
functions with the same name may end up in the same
namespace/scope and conflict. This happens for the
function UpdateMetadataForUsage.

This commit solves the issue by moving the function
to a shared util file.

Bug: 869381
Change-Id: I57b8f9c96c785a3bbfc8250f0edbe7690c3b3ff7
Commit-Queue: Oscar Johansson <>
Reviewed-by: Vadym Doroshenko <>
Cr-Commit-Position: refs/heads/master@{#580514}
4 files changed