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

Issue 902493002: Fix flakiness of SelectFileDialogExtensionBrowserTest.SelectFileAndCancel. (Closed)

Created:
5 years, 10 months ago by hirono
Modified:
5 years, 10 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix flakiness of SelectFileDialogExtensionBrowserTest.SelectFileAndCancel. Previously the test waits for destruction of render view host to check if the dialog has been closed or not. But test log shows there is a race and we cannot ensure the extension dialog has been closed even if its render view host is closed. The CL let the test wait for SelectionFileDialog::Listener's call instead, where we can ensure the dialog has been closed. BUG=453613 TEST=SelectFileDialogExtensionBrowserTest.SelectFileAndCancel Committed: https://crrev.com/33dcb1138514fadc1d4c9769ed5899eeca814231 Cr-Commit-Position: refs/heads/master@{#314510}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 5 chunks +17 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
hirono
PTAL, thanks!
5 years, 10 months ago (2015-02-04 05:17:51 UTC) #2
Lei Zhang
LGTM Thank you for the quick response. https://codereview.chromium.org/902493002/diff/1/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc File chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc (right): https://codereview.chromium.org/902493002/diff/1/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc#newcode79 chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc:79: if (message_loop_runner_) ...
5 years, 10 months ago (2015-02-04 05:32:49 UTC) #3
hirono
Thank you! https://codereview.chromium.org/902493002/diff/1/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc File chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc (right): https://codereview.chromium.org/902493002/diff/1/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc#newcode79 chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc:79: if (message_loop_runner_) On 2015/02/04 05:32:49, Lei Zhang ...
5 years, 10 months ago (2015-02-04 05:43:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/902493002/20001
5 years, 10 months ago (2015-02-04 05:44:31 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-04 06:20:40 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 06:21:36 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/33dcb1138514fadc1d4c9769ed5899eeca814231
Cr-Commit-Position: refs/heads/master@{#314510}

Powered by Google App Engine
This is Rietveld 408576698