PasswordEntryEditor.java's PASSWORD_ENTRY_ACTION_CANCELLED is unused |
|||||
Issue descriptionIt seems that PasswordEntryEditor does not log the cancelling action, whatever that might mean. Should we add that logging, or remove the references to that value in Java and mark it obsolete in UMA (if possible for a single value)? Adding melandory@ and jdoerrie@ in case they have historical context and fhorschig@ who has also been recently active in that code area.
,
Feb 2 2018
Is there something we could (or should) interpret in the new UI as "cancelled"? To me it looks like "just viewing" might be a valid use case and returning without action wouldn't necessarily mean the same. Therefore, marking PASSWORD_ENTRY_ACTION_CANCELLED as obsolete - i.e. by prefixing the label with "OBSOLETE_" - would make sense here.
,
Feb 2 2018
@vabr, I usually just rename the enum entry to something like "Cancelled (obsolete)" or "Cancelled (deprecated)", and make sure to similarly mark the enum slot reserved in the corresponding C++ code somehow.
,
Mar 14 2018
Thanks, fhorschig@ and isherman@ for the helpful answers! I agree with #2 and will implement the advice from #3.
,
Mar 14 2018
,
Mar 14 2018
,
Mar 15 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e5feb7e85061b88e8771ad95441713ac6d4401a4 commit e5feb7e85061b88e8771ad95441713ac6d4401a4 Author: Vaclav Brozek <vabr@chromium.org> Date: Thu Mar 15 21:32:16 2018 Mark PASSWORD_ENTRY_ACTION_CANCELLED as obsolete In PasswordEntryEditor, PASSWORD_ENTRY_ACTION_CANCELLED represented the action of cancelling viewing of a password. This action no longer maps to the current possible UI flows and its representation is therefore marked as obsolete in this CL. For more info see the discussion on the associated bug. Bug: 807577 Change-Id: I79dc75a4d3a14cf1df7f46d1a5a2b26b664e5a0f Reviewed-on: https://chromium-review.googlesource.com/962453 Reviewed-by: Ilya Sherman <isherman@chromium.org> Reviewed-by: Finnur Thorarinsson <finnur@chromium.org> Commit-Queue: Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#543503} [modify] https://crrev.com/e5feb7e85061b88e8771ad95441713ac6d4401a4/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/PasswordEntryEditor.java [modify] https://crrev.com/e5feb7e85061b88e8771ad95441713ac6d4401a4/tools/metrics/histograms/enums.xml
,
Mar 15 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by vabr@chromium.org
, Feb 2 2018