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

Issue 2740783003: Revert "Revert of Reland: Switch WindowedNotificationObserver to use base::RunLoop. (patchset #3 id… (Closed)

Created:
3 years, 9 months ago by Alexander Semashko
Modified:
3 years, 8 months ago
Reviewers:
vabr (Chromium), jam
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, eroman, tfarina, achuith+watch_chromium.org, bnc+watch_chromium.org, darin-cc_chromium.org, vabr+watchlistlogin_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, mmenke, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland #2: Switch WindowedNotificationObserver to use base::RunLoop. Now it will quit the message loop immediately after receiving the notification. Also it does not allow nested tasks anymore. Previous CL (https://codereview.chromium.org/2720513003) is in patchset #1. Added fixes for: - browser_tests.NavigatingExtensionPopupBrowserTest.DownloadViaPost with PlzNavigate; - interactive_ui_tests.ConstrainedWindowViewTest.NavigationOnBackspace. Also rephrased comment in print_preview_dialog_controller_browsertest.cc. BUG=668707 Review-Url: https://codereview.chromium.org/2740783003 Cr-Commit-Position: refs/heads/master@{#466016} Committed: https://chromium.googlesource.com/chromium/src/+/25911df55b8f939560df1f664f8cc8941ddc4677

Patch Set 1 #

Patch Set 2 : Patch for NavigatingExtensionPopupBrowserTest.DownloadViaPost. #

Total comments: 3

Patch Set 3 : Fix ConstrainedWindowViewTest.NavigationOnBackspace. #

Patch Set 4 : rebase #

Patch Set 5 : Remove broad RunAllPendingInMessageLoop calls; fix NativeAppWindowCocoaBrowserTest. #

Patch Set 6 : Fix extension loading tests. #

Patch Set 7 : Fix UnloadTest.BrowserCloseTabWhenOtherTabHasListener. #

Patch Set 8 : Fix DriveAppProviderTest.MatchingChromeAppInstalled. #

Patch Set 9 : Remove wrong expectation. #

Patch Set 10 : remove leftover parts. #

Total comments: 6

Patch Set 11 : Fix comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -157 lines) Patch
M chrome/browser/apps/drive/drive_app_provider_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_manager_test.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_test_notification_observer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_browsertest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 2 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm View 1 2 3 4 2 chunks +33 lines, -4 lines 0 comments Download
M chrome/browser/ui/login/login_handler_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +80 lines, -81 lines 0 comments Download
M chrome/browser/ui/login/login_handler_test_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/login/login_handler_test_utils.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views_browsertest.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/find_bar_views_interactive_uitest.cc View 1 2 3 2 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 2 3 2 chunks +51 lines, -25 lines 0 comments Download
M chrome/browser/unload_browsertest.cc View 1 2 3 4 5 6 2 chunks +11 lines, -8 lines 0 comments Download
M content/public/test/test_utils.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/test_utils.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/test/extension_test_notification_observer.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 43 (24 generated)
Alexander Semashko
3 years, 9 months ago (2017-03-09 10:31:47 UTC) #3
jam
https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode911 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:911: // TODO(https://crbug.com/695073): Find out why tests fail without it. ...
3 years, 9 months ago (2017-03-09 16:52:57 UTC) #9
Alexander Semashko
https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode911 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:911: // TODO(https://crbug.com/695073): Find out why tests fail without it. ...
3 years, 9 months ago (2017-03-09 19:47:48 UTC) #10
jam
https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode911 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:911: // TODO(https://crbug.com/695073): Find out why tests fail without it. ...
3 years, 9 months ago (2017-03-09 20:48:46 UTC) #11
Alexander Semashko
On 2017/03/09 20:48:46, jam wrote: > https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc > File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc > (right): > > https://codereview.chromium.org/2740783003/diff/20001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode911 ...
3 years, 9 months ago (2017-03-09 21:07:07 UTC) #12
jam
On 2017/03/09 21:07:07, Alexander Semashko wrote: > On 2017/03/09 20:48:46, jam wrote: > > > ...
3 years, 9 months ago (2017-03-10 16:09:18 UTC) #13
Alexander Semashko
On 2017/03/10 16:09:18, jam wrote: > On 2017/03/09 21:07:07, Alexander Semashko wrote: > > On ...
3 years, 9 months ago (2017-03-10 16:31:50 UTC) #14
jam
On 2017/03/10 16:31:50, Alexander Semashko wrote: > On 2017/03/10 16:09:18, jam wrote: > > On ...
3 years, 9 months ago (2017-03-10 19:19:51 UTC) #15
Alexander Semashko
Ok, I fixed all test failures that I have seen, PTAL again.
3 years, 8 months ago (2017-04-19 15:41:54 UTC) #26
jam
lgtm, thanks! https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc File chrome/browser/ui/login/login_handler_browsertest.cc (right): https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc#newcode467 chrome/browser/ui/login/login_handler_browsertest.cc:467: class MultiRealmLoginPromptBrowserTest : public LoginPromptBrowserTest { I'm ...
3 years, 8 months ago (2017-04-19 23:09:56 UTC) #29
Alexander Semashko
vabr, can you take a look at chrome/browser/ui/login? You can view the functional changes in ...
3 years, 8 months ago (2017-04-20 11:03:59 UTC) #31
vabr (Chromium)
Thanks, LGTM! Vaclav https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc File chrome/browser/ui/login/login_handler_browsertest.cc (right): https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc#newcode546 chrome/browser/ui/login/login_handler_browsertest.cc:546: EXPECT_LT(0, login_prompt_observer()->auth_needed_count()); nit: Could you add ...
3 years, 8 months ago (2017-04-20 11:55:03 UTC) #32
Alexander Semashko
https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc File chrome/browser/ui/login/login_handler_browsertest.cc (right): https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc#newcode546 chrome/browser/ui/login/login_handler_browsertest.cc:546: EXPECT_LT(0, login_prompt_observer()->auth_needed_count()); On 2017/04/20 11:55:03, vabr (Chromium) wrote: > ...
3 years, 8 months ago (2017-04-20 14:26:32 UTC) #33
vabr (Chromium)
https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc File chrome/browser/ui/login/login_handler_browsertest.cc (right): https://codereview.chromium.org/2740783003/diff/180001/chrome/browser/ui/login/login_handler_browsertest.cc#newcode546 chrome/browser/ui/login/login_handler_browsertest.cc:546: EXPECT_LT(0, login_prompt_observer()->auth_needed_count()); On 2017/04/20 14:26:32, Alexander Semashko wrote: > ...
3 years, 8 months ago (2017-04-20 14:29:07 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2740783003/200001
3 years, 8 months ago (2017-04-20 14:30:33 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/25911df55b8f939560df1f664f8cc8941ddc4677
3 years, 8 months ago (2017-04-20 15:28:53 UTC) #40
sgurun-gerrit only
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2828163004/ by sgurun@chromium.org. ...
3 years, 8 months ago (2017-04-20 18:43:06 UTC) #41
tdanderson
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2828403002/ by tdanderson@chromium.org. ...
3 years, 8 months ago (2017-04-20 19:08:57 UTC) #42
tdanderson
3 years, 8 months ago (2017-04-20 21:12:56 UTC) #43
Message was sent while issue was closed.
On 2017/04/20 19:08:57, tdanderson wrote:
> A revert of this CL (patchset #11 id:200001) has been created in
> https://codereview.chromium.org/2828403002/ by mailto:tdanderson@chromium.org.
> 
> The reason for reverting is: Probable cause for failing browser test
> NavigatingExtensionPopupBrowserTest.DownloadViaPost in
>
https://uberchromegw.corp.google.com/i/chromium.mac/builders/Mac10.11%20Tests....

Note: the revert did not end up landing. (The CQ wasn't picking up
the change, then it turns out the bot started cycling green.)

Powered by Google App Engine
This is Rietveld 408576698