Potentially revise image upload order for new photo picker |
||
Issue descriptionWhat is the current order that images selected with the new photopicker will be provided to the web content? Top down vs bottom up vs something else? Someone on Twitter requested it should be in the order the images were selected [1], I'm not 100% sure that would be the right behavior (I can imagine selecting on top photo at the end after having selected a bunch and being confused about why it was separated from the others at the top), but do want to clarify how it works today. [1] https://twitter.com/kennethrohde/status/874007228768022528
,
Jun 13 2017
The other clients of selection delegate don't particularly care about the ordering of selected items so I think that whatever policy we apply to the photo picker could apply to the other clients as well. To return the items in order of selection, we could swap out the HashSet tracking the selected items in SelectionDelegate for a LinkedHashSet.
,
Jun 13 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3741abddbe2c1c03a473d33e68d92902727c8e44 commit 3741abddbe2c1c03a473d33e68d92902727c8e44 Author: finnur <finnur@chromium.org> Date: Tue Jun 13 16:53:17 2017 Photo Picker dialog: Order selected photos the same as on screen. BUG= 732508 , 656015 Review-Url: https://codereview.chromium.org/2935093002 Cr-Commit-Position: refs/heads/master@{#479054} [modify] https://crrev.com/3741abddbe2c1c03a473d33e68d92902727c8e44/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerCategoryView.java
,
Jun 13 2017
Ordering the same as on screen LGTM! Thanks!
,
Jun 14 2017
Thanks, Owen. I interpret your comment in such a way that no further action is required. We can reopen this if that's not the case. |
||
►
Sign in to add a comment |
||
Comment 1 by finnur@chromium.org
, Jun 13 2017Status: Started (was: Untriaged)