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

Issue 23618028: [Files.app] Refile a timing of doing selectBestMatchItem(). (Closed)

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

Description

[Files.app] Refile a timing of doing selectBestMatchItem(). Previously, selectBestMatchItem() is called in the 'permuted'/'changed' handlers of the data model. But in this timing, although we can make sure that the data model is updated, but the list elements in the list may not be updated (it depends on the order of registration of event listeners). Then we can't select the target item since the target item may not be created yet. This patch delays it just after the updating of elements in list. BUG=280155 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221246

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : addressed comment #

Total comments: 2

Patch Set 4 : addressed comment #

Total comments: 2

Patch Set 5 : addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
M chrome/browser/resources/file_manager/js/navigation_list.js View 1 2 3 4 1 chunk +12 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
yoshiki
@hirono, could you take a look? Thanks.
7 years, 3 months ago (2013-09-03 07:50:19 UTC) #1
hirono
https://codereview.chromium.org/23618028/diff/3001/chrome/browser/resources/file_manager/js/navigation_list.js File chrome/browser/resources/file_manager/js/navigation_list.js (right): https://codereview.chromium.org/23618028/diff/3001/chrome/browser/resources/file_manager/js/navigation_list.js#newcode687 chrome/browser/resources/file_manager/js/navigation_list.js:687: NavigationList.prototype.endBatchUpdates = function() { It seems that the endBatchUpdates ...
7 years, 3 months ago (2013-09-03 08:20:30 UTC) #2
yoshiki
@hirono, PTAL. https://codereview.chromium.org/23618028/diff/3001/chrome/browser/resources/file_manager/js/navigation_list.js File chrome/browser/resources/file_manager/js/navigation_list.js (right): https://codereview.chromium.org/23618028/diff/3001/chrome/browser/resources/file_manager/js/navigation_list.js#newcode687 chrome/browser/resources/file_manager/js/navigation_list.js:687: NavigationList.prototype.endBatchUpdates = function() { On 2013/09/03 08:20:30, ...
7 years, 3 months ago (2013-09-03 09:33:32 UTC) #3
hirono
https://codereview.chromium.org/23618028/diff/12001/chrome/browser/resources/file_manager/js/navigation_list.js File chrome/browser/resources/file_manager/js/navigation_list.js (right): https://codereview.chromium.org/23618028/diff/12001/chrome/browser/resources/file_manager/js/navigation_list.js#newcode690 chrome/browser/resources/file_manager/js/navigation_list.js:690: this.onListContentChanged_(); It seems that the redraw event is raised ...
7 years, 3 months ago (2013-09-03 09:47:21 UTC) #4
yoshiki
@hirono: PTAL. Thanks. https://codereview.chromium.org/23618028/diff/12001/chrome/browser/resources/file_manager/js/navigation_list.js File chrome/browser/resources/file_manager/js/navigation_list.js (right): https://codereview.chromium.org/23618028/diff/12001/chrome/browser/resources/file_manager/js/navigation_list.js#newcode690 chrome/browser/resources/file_manager/js/navigation_list.js:690: this.onListContentChanged_(); On 2013/09/03 09:47:21, hirono wrote: ...
7 years, 3 months ago (2013-09-04 13:21:11 UTC) #5
hirono
lgtm with nit! https://codereview.chromium.org/23618028/diff/16001/chrome/browser/resources/file_manager/js/navigation_list.js File chrome/browser/resources/file_manager/js/navigation_list.js (right): https://codereview.chromium.org/23618028/diff/16001/chrome/browser/resources/file_manager/js/navigation_list.js#newcode454 chrome/browser/resources/file_manager/js/navigation_list.js:454: 'change', this.boundHandleListChanged_); nit: The name pattern ...
7 years, 3 months ago (2013-09-04 13:39:25 UTC) #6
hirono
Sorry the search queries are: on[a-zA-Z]+Bound file:\.js$ bound[a-zA-Z]+ file:file_manager\/.+\.js$
7 years, 3 months ago (2013-09-04 13:42:12 UTC) #7
yoshiki
Thanks. https://codereview.chromium.org/23618028/diff/16001/chrome/browser/resources/file_manager/js/navigation_list.js File chrome/browser/resources/file_manager/js/navigation_list.js (right): https://codereview.chromium.org/23618028/diff/16001/chrome/browser/resources/file_manager/js/navigation_list.js#newcode454 chrome/browser/resources/file_manager/js/navigation_list.js:454: 'change', this.boundHandleListChanged_); On 2013/09/04 13:39:25, hirono wrote: > ...
7 years, 3 months ago (2013-09-04 14:26:55 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/23618028/22001
7 years, 3 months ago (2013-09-04 16:36:10 UTC) #9
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 20:11:31 UTC) #10
Message was sent while issue was closed.
Change committed as 221246

Powered by Google App Engine
This is Rietveld 408576698