Move password popup building suggestions into helper methods
This CL should have no visible effect. (maybe metrics, see below) Currently, the same popup suggestions are built in two different places and a third one reuses one of the methods. For updating, there will be at least two more code paths building suggestions which cannot reuse the current code. To prevent code duplication, this CL moves building the suggestions into helper methods. One notable change: previously, we would record the metric "PasswordManager.ShowAllSavedPasswordsShownContext" when the suggestion entry was added to the list of suggestions. This might have recorded the metric prematurely since there is another check that occasionally prevents showing the popup (and with it, the "Show all" button). Bug: 1043963 Change-Id: Ia305c9102d6f1b2f6430e02617e83de02f9253e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020704 Commit-Queue: Friedrich [CET] <fhorschig@chromium.org> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#736273}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment