Allow distinguishing successful from cancelled edits in EditorBase.
Previously, a single callback was invoked, no matter whether the user cancelled or confirmed the dialog. This made it impossible to distinguish the successful edit of a previously complete item from a cancelled edit, because in both cases, the callback was invoked with the same argument. This CL also fixes a bug in Autofill Assistant caused by this behavior: cancelling the edit of a complete item should not auto-select that item (see b/132077559). Note: the Chrome PR does not have the same problem, because the 'edit' icon is only available for the currently selected item. Thus, it is impossible to edit a currently unselected item. There is a similar issue for incomplete items, which is out-of-scope for this CL (see bug for details). Bug: b/132077559 Change-Id: I3ef79397a7be902b6e616c984e7770d6ce6fc9d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1603059 Commit-Queue: Clemens Arbesser <arbesser@google.com> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:
Mathias Carlen <mcarlen@chromium.org> Cr-Commit-Position: refs/heads/master@{#663024}
Showing
Please register or sign in to comment