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

Issue 2402553005: Do not run a nested loop in content::DeferredQuitRunLoop. (Closed)

Created:
4 years, 2 months ago by fdoray
Modified:
4 years, 2 months ago
Reviewers:
jam, Paweł Hajdan Jr.
CC:
chromium-reviews, darin-cc_chromium.org, phajdan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not run a nested loop in content::DeferredQuitRunLoop. In preparation for the migration of BrowserThreads to base/task_scheduler, we want to disallow running nested loops on BrowserThreads (except IO and UI threads). content::DeferredQuitRunLoop is currently the only code that runs nested loops on these threads. BUG=653916 Committed: https://crrev.com/8b65c3e37ffd93e7402d22cd053419a8a8edd862 Cr-Commit-Position: refs/heads/master@{#424534}

Patch Set 1 #

Patch Set 2 : fix bookmarks test #

Patch Set 3 : fix OneClickSigninDialogViewTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -31 lines) Patch
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_dialog_view_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/public/test/test_utils.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/test/test_utils.cc View 4 chunks +16 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (14 generated)
fdoray
PTAL
4 years, 2 months ago (2016-10-07 15:48:26 UTC) #11
Paweł Hajdan Jr.
I'd be more comfortable with John reviewing this code. FWIW it looks OK to me ...
4 years, 2 months ago (2016-10-11 18:26:22 UTC) #13
jam
lgtm btw when do we run nested message loops on IO thread?
4 years, 2 months ago (2016-10-11 19:24:19 UTC) #14
fdoray
On 2016/10/11 19:24:19, jam wrote: > lgtm > > btw when do we run nested ...
4 years, 2 months ago (2016-10-11 19:35:55 UTC) #15
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/2402553005/40001
4 years, 2 months ago (2016-10-11 19:36:40 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-11 20:37:58 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8b65c3e37ffd93e7402d22cd053419a8a8edd862 Cr-Commit-Position: refs/heads/master@{#424534}
4 years, 2 months ago (2016-10-11 20:41:19 UTC) #21
jam
4 years, 2 months ago (2016-10-11 21:23:49 UTC) #22
Message was sent while issue was closed.
On 2016/10/11 19:35:55, fdoray wrote:
> On 2016/10/11 19:24:19, jam wrote:
> > lgtm
> > 
> > btw when do we run nested message loops on IO thread?
> 
> We don't need to disallow running nested message loops on IO thread because we
> don't plan to migrate it to TaskScheduler anytime soon. I don't know if we
ever
> ru nested message loop on IO thread. Do you think it should be disallowed?

I don't know of an instance (but not saying there aren't, but I would be very
surprised). I asked because the cl description said that the IO thread runs
nested loops.

Powered by Google App Engine
This is Rietveld 408576698