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

Issue 135973012: [Galley] Fix an exception in clicking a thumbnail (Closed)

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

Description

[Galley] Fix an exception in clicking a thumbnail This patch fixes the exception in clicking a thumbnail. It is a regression caused by r249027 and a possible cause of crbug.com/340624. The 'length' property of the selection model is NOT the number of the selected item. To get it, we need to get the length of 'selectedIndex' property. BUG=340624 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251290

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix the root cause #

Total comments: 2

Patch Set 3 : Addressed the comment #

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

Messages

Total messages: 14 (0 generated)
yoshiki
hirono, could you take a look? Thanks.
6 years, 10 months ago (2014-02-12 16:54:17 UTC) #1
hirono
https://codereview.chromium.org/135973012/diff/1/chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js File chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js (right): https://codereview.chromium.org/135973012/diff/1/chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js#newcode308 chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js:308: this.selectionModel_.beginChange(); I'm not sure why the pair of methods ...
6 years, 10 months ago (2014-02-13 04:57:07 UTC) #2
yoshiki
Sorry, I found the root cause and fixed it instead. The brief explanation is in ...
6 years, 10 months ago (2014-02-13 06:32:45 UTC) #3
hirono
Thanks! https://codereview.chromium.org/135973012/diff/90001/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js File chrome/browser/resources/file_manager/foreground/js/photo/gallery.js (right): https://codereview.chromium.org/135973012/diff/90001/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js#newcode641 chrome/browser/resources/file_manager/foreground/js/photo/gallery.js:641: var numSelectedItems = selectedIndex.length; this.selectedIndexes.length?
6 years, 10 months ago (2014-02-13 06:42:22 UTC) #4
hirono
https://codereview.chromium.org/135973012/diff/90001/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js File chrome/browser/resources/file_manager/foreground/js/photo/gallery.js (right): https://codereview.chromium.org/135973012/diff/90001/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js#newcode641 chrome/browser/resources/file_manager/foreground/js/photo/gallery.js:641: var numSelectedItems = selectedIndex.length; On 2014/02/13 06:42:22, hirono wrote: ...
6 years, 10 months ago (2014-02-13 06:43:25 UTC) #5
yoshiki
On 2014/02/13 06:43:25, hirono wrote: > https://codereview.chromium.org/135973012/diff/90001/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js > File chrome/browser/resources/file_manager/foreground/js/photo/gallery.js > (right): > > https://codereview.chromium.org/135973012/diff/90001/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js#newcode641 ...
6 years, 10 months ago (2014-02-13 07:59:08 UTC) #6
hirono
lgtm! Thanks!
6 years, 10 months ago (2014-02-13 08:06:56 UTC) #7
yoshiki
The CQ bit was checked by yoshiki@chromium.org
6 years, 10 months ago (2014-02-13 09:10:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/135973012/150001
6 years, 10 months ago (2014-02-13 09:10:48 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 10:06:43 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=263360
6 years, 10 months ago (2014-02-13 10:06:43 UTC) #11
yoshiki
The CQ bit was checked by yoshiki@chromium.org
6 years, 10 months ago (2014-02-14 04:47:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/135973012/150001
6 years, 10 months ago (2014-02-14 04:49:03 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 13:43:30 UTC) #14
Message was sent while issue was closed.
Change committed as 251290

Powered by Google App Engine
This is Rietveld 408576698