Should prefer to have repeating entries, which may use something else to indicate the context.
PasswordForm UKM has some metrics that currently depend on this.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/27e653f958c14b464f2f7a98ba262af25fc40c13 commit 27e653f958c14b464f2f7a98ba262af25fc40c13 Author: Steven Holte <holte@google.com> Date: Wed May 09 02:09:01 2018 Use a map for storing UKM metrics. Bug: 755407 Change-Id: If7dc53455d023c653e184cdbfe5066875aea7052 Reviewed-on: https://chromium-review.googlesource.com/1028851 Commit-Queue: Steven Holte <holte@chromium.org> Reviewed-by: Michael Giuffrida <michaelpg@chromium.org> Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org> Reviewed-by: Sam McNally <sammc@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Robert Kaplow <rkaplow@chromium.org> Cr-Commit-Position: refs/heads/master@{#557063} [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/chrome/browser/ui/tabs/tab_ukm_test_helper.cc [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/components/autofill/core/browser/autofill_metrics_unittest.cc [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/components/ukm/debug/ukm_debug_data_extractor.cc [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/components/ukm/test_ukm_recorder.cc [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/components/ukm/ukm_recorder_impl.cc [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/services/metrics/public/cpp/ukm_entry_builder_base.cc [modify] https://crrev.com/27e653f958c14b464f2f7a98ba262af25fc40c13/services/metrics/public/mojom/ukm_interface.mojom
Comment 1 by holte@chromium.org
, Aug 18 2017