Refactor all the UMA tracking in Password Protection

Move all the UMA logging logic into a separate util file.
And make all relevant enums to enum classes.
No behavior changes.

Bug: 854314
Change-Id: If6035cc1ee86faa4f1aaf003318f72dc44660814
Reviewed-by: Brian White <>
Reviewed-by: Elly Fong-Jones <>
Reviewed-by: Mustafa Emre Acer <>
Reviewed-by: Varun Khaneja <>
Commit-Queue: Jialiu Lin <>
Cr-Commit-Position: refs/heads/master@{#578339}
25 files changed