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

Issue 2539263003: Move Task Scheduler Initialization From chrome/browser to Content (Closed)

Created:
4 years ago by robliao
Modified:
4 years ago
Reviewers:
gab, jam, fdoray
CC:
chromium-reviews, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Task Scheduler Initialization From chrome/browser to Content Content appears to actually be the owner of the process running a browser. As such, it stands to reason that it should be the one initializing and controlling the lifetime of the task scheduler. BUG=662052 Committed: https://crrev.com/bf5a32eecdb817a66b45af678f11ca1368d648b1 Cr-Commit-Position: refs/heads/master@{#437452}

Patch Set 1 #

Total comments: 16

Patch Set 2 : CR Feedback and Move to Components Dependency #

Total comments: 6

Patch Set 3 : CR Feedback + Shift Default Implementation to Browser Main Loop (ContentBrowserClient is supposed t… #

Patch Set 4 : Remove Content Dependency on components/task_scheduler_util #

Total comments: 8

Patch Set 5 : CR Feedback #

Patch Set 6 : Rebase to bf8e2f1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -50 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 5 chunks +9 lines, -26 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M components/task_scheduler_util/initialization/browser_util.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M components/task_scheduler_util/initialization/browser_util.cc View 1 2 3 4 4 chunks +8 lines, -23 lines 0 comments Download
M components/task_scheduler_util/initialization_util.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/task_scheduler_util/initialization_util.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 4 chunks +92 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 54 (33 generated)
robliao
4 years ago (2016-11-30 22:19:58 UTC) #2
gab
https://codereview.chromium.org/2539263003/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2539263003/diff/1/chrome/browser/chrome_browser_main.cc#newcode1200 chrome/browser/chrome_browser_main.cc:1200: // IMPORTANT Does this comment apply anymore? i.e. it's ...
4 years ago (2016-11-30 22:36:58 UTC) #8
robliao
Responding to the larger question first. Will address the rest of the comments once that's ...
4 years ago (2016-11-30 22:46:57 UTC) #9
gab
https://codereview.chromium.org/2539263003/diff/1/components/task_scheduler_util/initialization_util.cc File components/task_scheduler_util/initialization_util.cc (right): https://codereview.chromium.org/2539263003/diff/1/components/task_scheduler_util/initialization_util.cc#newcode210 components/task_scheduler_util/initialization_util.cc:210: if (!variations::GetVariationParams(kFieldTrialName, &variation_params)) On 2016/11/30 22:46:57, robliao wrote: > ...
4 years ago (2016-11-30 23:10:38 UTC) #10
robliao
https://codereview.chromium.org/2539263003/diff/1/components/task_scheduler_util/initialization_util.cc File components/task_scheduler_util/initialization_util.cc (right): https://codereview.chromium.org/2539263003/diff/1/components/task_scheduler_util/initialization_util.cc#newcode210 components/task_scheduler_util/initialization_util.cc:210: if (!variations::GetVariationParams(kFieldTrialName, &variation_params)) On 2016/11/30 23:10:38, gab wrote: > ...
4 years ago (2016-11-30 23:45:22 UTC) #11
chromium-reviews
I did mean piecemeal for redirection (not specifying a partial set of pools). I want ...
4 years ago (2016-12-01 01:03:35 UTC) #12
fdoray
https://codereview.chromium.org/2539263003/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2539263003/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode3315 chrome/browser/chrome_content_browser_client.cc:3315: task_scheduler_util::GetBrowserTaskSchedulerInitParameters( InitializationParams vs InitParameters: Use the same wording everywhere? ...
4 years ago (2016-12-01 15:26:21 UTC) #13
robliao
https://codereview.chromium.org/2539263003/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2539263003/diff/1/chrome/browser/chrome_browser_main.cc#newcode1200 chrome/browser/chrome_browser_main.cc:1200: // IMPORTANT On 2016/11/30 22:36:58, gab wrote: > Does ...
4 years ago (2016-12-06 01:31:30 UTC) #14
fdoray
lgtm w/ comments https://codereview.chromium.org/2539263003/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2539263003/diff/20001/content/browser/browser_main_loop.cc#newcode1215 content/browser/browser_main_loop.cc:1215: base::TaskScheduler::GetInstance()->Shutdown(); TaskScheduler is initialized just before ...
4 years ago (2016-12-06 21:14:12 UTC) #15
robliao
https://codereview.chromium.org/2539263003/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2539263003/diff/20001/content/browser/browser_main_loop.cc#newcode1215 content/browser/browser_main_loop.cc:1215: base::TaskScheduler::GetInstance()->Shutdown(); On 2016/12/06 21:14:12, fdoray wrote: > TaskScheduler is ...
4 years ago (2016-12-07 00:57:33 UTC) #16
fdoray
lgtm w/ comments https://codereview.chromium.org/2539263003/diff/80001/components/task_scheduler_util/initialization/browser_util.cc File components/task_scheduler_util/initialization/browser_util.cc (right): https://codereview.chromium.org/2539263003/diff/80001/components/task_scheduler_util/initialization/browser_util.cc#newcode87 components/task_scheduler_util/initialization/browser_util.cc:87: #if defined(OS_IOS) the whole function, to ...
4 years ago (2016-12-07 13:46:12 UTC) #24
gab
Very nice, this is great :), there is pretty much no duplication now (or did ...
4 years ago (2016-12-07 16:05:20 UTC) #25
robliao
jam: Please review chrome/browser/* and content/* in this CL. Thanks! https://codereview.chromium.org/2539263003/diff/80001/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h (right): https://codereview.chromium.org/2539263003/diff/80001/chrome/browser/chrome_content_browser_client.h#newcode324 ...
4 years ago (2016-12-08 01:04:22 UTC) #34
jam
why do we still need components/task_scheduler_util? I was under the impression that it could go ...
4 years ago (2016-12-08 16:58:36 UTC) #37
robliao
On 2016/12/08 16:58:36, jam wrote: > why do we still need components/task_scheduler_util? I was under ...
4 years ago (2016-12-08 17:58:03 UTC) #38
robliao
On 2016/12/08 17:58:03, robliao wrote: > On 2016/12/08 16:58:36, jam wrote: > > why do ...
4 years ago (2016-12-08 22:07:26 UTC) #40
jam
lgtm
4 years ago (2016-12-08 23:51:59 UTC) #41
robliao
On 2016/12/08 23:51:59, jam wrote: > lgtm Offline Discussion Notes: * We want to minimize ...
4 years ago (2016-12-08 23:57:02 UTC) #42
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/2539263003/140001
4 years ago (2016-12-09 00:30:41 UTC) #49
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years ago (2016-12-09 03:36:19 UTC) #52
commit-bot: I haz the power
4 years ago (2016-12-09 03:40:29 UTC) #54
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bf5a32eecdb817a66b45af678f11ca1368d648b1
Cr-Commit-Position: refs/heads/master@{#437452}

Powered by Google App Engine
This is Rietveld 408576698