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

Issue 1082423003: Better handle showing suggest apps dialog before previous one is hidden (Closed)

Created:
5 years, 8 months ago by tbarzic
Modified:
5 years, 8 months ago
Reviewers:
yoshiki
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Better handle showing suggest apps dialog before previous one is hidden There is delay between suggest apps dialog restoring focus to file manager window (which happens in BaseDialog.hide) and suggest dialog reporting result and being marked not shown (which happens in onHide callback). If another suggest apps dialog is started during that time, it should fail silently instead of reporting error. Also, any widget container state set by the new dialog should be reset. BUG=477106 TEST=1. Open suggest apps dialog for a file. 2. Cancel the dialog by pressing 'Esc'. 3. Try to open an new dialog immediately by clicking 'Enter' (the list entry for the initial file should have focus at this point) 4. Verify no error is shown. 5. Verify subsequent attempts to open the dialog succeed (after a second or two) Committed: https://crrev.com/e783c6b2f5924db874884e2f31232ffdeee47fb9 Cr-Commit-Position: refs/heads/master@{#326829}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : updated a comment, and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M ui/file_manager/file_manager/foreground/js/cws_widget_container.js View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js View 1 2 3 chunks +20 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
tbarzic
5 years, 8 months ago (2015-04-22 02:06:26 UTC) #2
yoshiki
lgtm with nit https://codereview.chromium.org/1082423003/diff/20001/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js File ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js (right): https://codereview.chromium.org/1082423003/diff/20001/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js#newcode170 ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js:170: // Reset any widget state set ...
5 years, 8 months ago (2015-04-24 08:09:50 UTC) #3
tbarzic
https://codereview.chromium.org/1082423003/diff/20001/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js File ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js (right): https://codereview.chromium.org/1082423003/diff/20001/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js#newcode170 ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js:170: // Reset any widget state set in |this.widget_.ready()|. On ...
5 years, 8 months ago (2015-04-24 17:04:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082423003/40001
5 years, 8 months ago (2015-04-24 17:05:07 UTC) #7
yoshiki
https://codereview.chromium.org/1082423003/diff/20001/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js File ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js (right): https://codereview.chromium.org/1082423003/diff/20001/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js#newcode170 ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js:170: // Reset any widget state set in |this.widget_.ready()|. On ...
5 years, 8 months ago (2015-04-24 17:29:45 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-24 17:37:41 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 17:39:26 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e783c6b2f5924db874884e2f31232ffdeee47fb9
Cr-Commit-Position: refs/heads/master@{#326829}

Powered by Google App Engine
This is Rietveld 408576698