Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Issue 124923002: Fix selecting when opening an image from the download shelf. (Closed)

Created:
6 years, 11 months ago by mtomasz
Modified:
6 years, 11 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Fix selecting when opening an image from the download shelf. After migrating fullPaths/URLs to Entries in the gallery, it was assumed that the 'entries' and 'selectedEntries' arrays contain a common subset of Entries by meaning of same references for the same images. However, when opening from the shelf, the selected image's Entry reference is not contained in the 'entries' array. Therefore, we have to lookup by urls instead of references. In general, we should never compare Entries by references. TEST=Tested manually on the download shelf. BUG=331735 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243090

Patch Set 1 #

Patch Set 2 : Fixed a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M chrome/browser/resources/file_manager/foreground/js/photo/gallery.js View 1 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mtomasz
@hirono: PTAL. Thanks!
6 years, 11 months ago (2014-01-06 06:38:09 UTC) #1
hirono
lgtm!
6 years, 11 months ago (2014-01-06 10:15:48 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/124923002/30001
6 years, 11 months ago (2014-01-06 13:02:03 UTC) #3
commit-bot: I haz the power
6 years, 11 months ago (2014-01-06 15:02:33 UTC) #4
Message was sent while issue was closed.
Change committed as 243090

Powered by Google App Engine
This is Rietveld 408576698