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

Issue 2690183002: RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk.

Created:
3 years, 10 months ago by gab
Modified:
3 years, 8 months ago
Reviewers:
jam, rkaplow
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID(): waiting on the exact same set of tasks it did prior to redirection). BUG=653916 Review-Url: https://codereview.chromium.org/2690183002 Cr-Commit-Position: refs/heads/master@{#461481} Committed: https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ecf76ae2c87695

Patch Set 1 #

Patch Set 2 : Allow wait in ShutdownThreadsAndCleanUp() #

Total comments: 1

Patch Set 3 : update dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -78 lines) Patch
M base/threading/thread_restrictions.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 1 chunk +79 lines, -77 lines 0 comments Download
M testing/variations/fieldtrial_testing_config.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 46 (35 generated)
gab
John PTaL @Rob for fieldtrial_testing_config.json Thanks https://codereview.chromium.org/2690183002/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2690183002/diff/20001/content/browser/browser_main_loop.cc#newcode1274 content/browser/browser_main_loop.cc:1274: base::ThreadRestrictions::ScopedAllowWait allow_wait_for_join; This ...
3 years, 8 months ago (2017-03-30 20:09:03 UTC) #16
rkaplow
lgtm
3 years, 8 months ago (2017-03-31 03:54:52 UTC) #20
jam
sorry for the delay, can you reroute this? I'm busy today and Monday.
3 years, 8 months ago (2017-03-31 19:21:29 UTC) #21
jam
lgtm
3 years, 8 months ago (2017-03-31 19:45:09 UTC) #24
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/2690183002/40001
3 years, 8 months ago (2017-04-03 02:57:31 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/413507)
3 years, 8 months ago (2017-04-03 04:55:04 UTC) #35
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/2690183002/40001
3 years, 8 months ago (2017-04-03 14:56:16 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/413691)
3 years, 8 months ago (2017-04-03 17:20:08 UTC) #39
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/2690183002/40001
3 years, 8 months ago (2017-04-03 17:22:46 UTC) #41
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ecf76ae2c87695
3 years, 8 months ago (2017-04-03 18:31:42 UTC) #44
robliao
3 years, 8 months ago (2017-04-04 00:29:52 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2791933004/ by robliao@chromium.org.

The reason for reverting is: Breaks some DBUS code that requests for a message
loop.

Powered by Google App Engine
This is Rietveld 408576698