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

Issue 2565013002: Split browser-specific and generic code in components/task_scheduler_util/. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
robliao, gab, blundell
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watch_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, pkl (ping after 24h if needed)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split browser-specific and generic code in components/task_scheduler_util/. This will allow code to be reused to initialize TaskScheduler based on variation params in renderers. To avoid breaking ios-internal, this CL keeps existing components/task_scheduler_util APIs. Code in ChromeContentBrowserClient and ios-internal will be migrated to the new APIs in separate CLs. Then, old components/task_scheduler_util APIs will be deleted. TBR=blundell@chromium.org BUG=664996 Committed: https://crrev.com/4b4ca6521434859be5c614f961ec72b9e19826cc Cr-Commit-Position: refs/heads/master@{#439481}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review #

Patch Set 4 : self-review #

Patch Set 5 : self-review #

Patch Set 6 : self-review #

Total comments: 9

Patch Set 7 : CR gab #4 #

Patch Set 8 : rebase #

Patch Set 9 : self-review #

Patch Set 10 : self-review #

Total comments: 4

Patch Set 11 : keep old APIs #

Total comments: 3

Patch Set 12 : self-review #

Total comments: 8

Patch Set 13 : CR robliao #21 + fix build error #

Total comments: 4

Patch Set 14 : CR robliao #27 #

Patch Set 15 : rebase #

Patch Set 16 : fix build error #

Patch Set 17 : fix linux build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -375 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
A components/task_scheduler_util/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
A components/task_scheduler_util/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
A components/task_scheduler_util/browser/initialization.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +35 lines, -0 lines 0 comments Download
A components/task_scheduler_util/browser/initialization.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +84 lines, -0 lines 0 comments Download
A + components/task_scheduler_util/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -5 lines 0 comments Download
A components/task_scheduler_util/common/variations_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +41 lines, -0 lines 0 comments Download
A components/task_scheduler_util/common/variations_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +108 lines, -0 lines 0 comments Download
A components/task_scheduler_util/common/variations_util_unittest.cc View 1 2 3 4 5 6 1 chunk +148 lines, -0 lines 0 comments Download
D components/task_scheduler_util/initialization/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -13 lines 0 comments Download
D components/task_scheduler_util/initialization/browser_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -39 lines 0 comments Download
D components/task_scheduler_util/initialization/browser_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -109 lines 0 comments Download
D components/task_scheduler_util/initialization/browser_util_unittest.cc View 1 chunk +0 lines, -65 lines 0 comments Download
D components/task_scheduler_util/variations/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
D components/task_scheduler_util/variations/browser_variations_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M components/task_scheduler_util/variations/browser_variations_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -140 lines 0 comments Download
D components/task_scheduler_util/variations/browser_variations_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (29 generated)
fdoray
You may take a look, but I haven't done a thorough review myself. I will ...
4 years ago (2016-12-09 22:40:49 UTC) #2
fdoray
PTAL
4 years ago (2016-12-12 13:12:06 UTC) #3
gab
lgtm overall w/ comments, less LOCs to do the same thing with what looks to ...
4 years ago (2016-12-12 17:07:21 UTC) #4
fdoray
robliao@: PTAL https://codereview.chromium.org/2565013002/diff/100001/components/task_scheduler_util/common/variations_util.cc File components/task_scheduler_util/common/variations_util.cc (right): https://codereview.chromium.org/2565013002/diff/100001/components/task_scheduler_util/common/variations_util.cc#newcode18 components/task_scheduler_util/common/variations_util.cc:18: struct SchedulerVariableWorkerPoolParams { On 2016/12/12 17:07:21, gab ...
4 years ago (2016-12-12 18:30:06 UTC) #5
fdoray
robliao@: PTAnL You can review even if I didn't change the upstream patch yet.
4 years ago (2016-12-14 17:31:11 UTC) #6
robliao
On 2016/12/14 17:31:11, fdoray wrote: > robliao@: PTAnL > > You can review even if ...
4 years ago (2016-12-14 18:54:39 UTC) #7
robliao
On 2016/12/14 18:54:39, robliao wrote: > On 2016/12/14 17:31:11, fdoray wrote: > > robliao@: PTAnL ...
4 years ago (2016-12-14 20:46:17 UTC) #8
robliao
High level comments. https://codereview.chromium.org/2565013002/diff/180001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2565013002/diff/180001/chrome/browser/chrome_content_browser_client.cc#newcode3339 chrome/browser/chrome_content_browser_client.cc:3339: if (variations::GetVariationParams("BrowserScheduler", &variation_params)) { One of ...
4 years ago (2016-12-14 20:46:48 UTC) #9
fdoray
https://codereview.chromium.org/2565013002/diff/180001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2565013002/diff/180001/chrome/browser/chrome_content_browser_client.cc#newcode3339 chrome/browser/chrome_content_browser_client.cc:3339: if (variations::GetVariationParams("BrowserScheduler", &variation_params)) { On 2016/12/14 20:46:48, robliao wrote: ...
4 years ago (2016-12-14 21:03:12 UTC) #10
robliao
On 2016/12/14 21:03:12, fdoray wrote: > https://codereview.chromium.org/2565013002/diff/180001/chrome/browser/chrome_content_browser_client.cc > File chrome/browser/chrome_content_browser_client.cc (right): > > https://codereview.chromium.org/2565013002/diff/180001/chrome/browser/chrome_content_browser_client.cc#newcode3339 > ...
4 years ago (2016-12-14 21:41:58 UTC) #11
fdoray
robliao@: PTAnL
4 years ago (2016-12-15 20:36:12 UTC) #13
robliao
https://codereview.chromium.org/2565013002/diff/200001/components/task_scheduler_util/initialization/BUILD.gn File components/task_scheduler_util/initialization/BUILD.gn (left): https://codereview.chromium.org/2565013002/diff/200001/components/task_scheduler_util/initialization/BUILD.gn#oldcode5 components/task_scheduler_util/initialization/BUILD.gn:5: static_library("initialization") { This is still showing as deleted. Patch ...
4 years ago (2016-12-15 20:41:10 UTC) #16
robliao
https://codereview.chromium.org/2565013002/diff/200001/components/task_scheduler_util/initialization/BUILD.gn File components/task_scheduler_util/initialization/BUILD.gn (left): https://codereview.chromium.org/2565013002/diff/200001/components/task_scheduler_util/initialization/BUILD.gn#oldcode5 components/task_scheduler_util/initialization/BUILD.gn:5: static_library("initialization") { On 2016/12/15 20:41:09, robliao wrote: > This ...
4 years ago (2016-12-15 20:45:41 UTC) #19
fdoray
https://codereview.chromium.org/2565013002/diff/200001/components/task_scheduler_util/initialization/BUILD.gn File components/task_scheduler_util/initialization/BUILD.gn (left): https://codereview.chromium.org/2565013002/diff/200001/components/task_scheduler_util/initialization/BUILD.gn#oldcode5 components/task_scheduler_util/initialization/BUILD.gn:5: static_library("initialization") { On 2016/12/15 20:45:41, robliao wrote: > On ...
4 years ago (2016-12-15 20:47:26 UTC) #20
robliao
Looking good. Thanks for the transitional change. https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/browser/initialization.h File components/task_scheduler_util/browser/initialization.h (right): https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/browser/initialization.h#newcode30 components/task_scheduler_util/browser/initialization.h:30: GetDefaultBrowserWorkerPoolParams(); This ...
4 years ago (2016-12-15 21:26:46 UTC) #21
fdoray
PTAnL https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/browser/initialization.h File components/task_scheduler_util/browser/initialization.h (right): https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/browser/initialization.h#newcode30 components/task_scheduler_util/browser/initialization.h:30: GetDefaultBrowserWorkerPoolParams(); On 2016/12/15 21:26:46, robliao wrote: > This ...
4 years ago (2016-12-15 21:48:49 UTC) #24
robliao
https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/common/variations_util.h File components/task_scheduler_util/common/variations_util.h (right): https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/common/variations_util.h#newcode21 components/task_scheduler_util/common/variations_util.h:21: const char* const name; On 2016/12/15 21:48:49, fdoray wrote: ...
4 years ago (2016-12-15 22:07:09 UTC) #27
fdoray
robliao@: PTAnL https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/common/variations_util.h File components/task_scheduler_util/common/variations_util.h (right): https://codereview.chromium.org/2565013002/diff/220001/components/task_scheduler_util/common/variations_util.h#newcode21 components/task_scheduler_util/common/variations_util.h:21: const char* const name; On 2016/12/15 22:07:08, ...
4 years ago (2016-12-16 13:06:44 UTC) #30
robliao
lgtm + builds on iOS on my checkout. Thanks! Looks like there may be patch ...
4 years ago (2016-12-16 19:23:58 UTC) #33
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/2565013002/280001
4 years ago (2016-12-19 13:13:12 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/328859)
4 years ago (2016-12-19 13:19:32 UTC) #38
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/2565013002/300001
4 years ago (2016-12-19 13:55:14 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/328884)
4 years ago (2016-12-19 14:02:12 UTC) #43
fdoray
TBR=blundell@chromium.org for components/BUILD.gn
4 years ago (2016-12-19 14:14:24 UTC) #46
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/2565013002/300001
4 years ago (2016-12-19 14:14:41 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/211422)
4 years ago (2016-12-19 14:32:48 UTC) #50
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/2565013002/320001
4 years ago (2016-12-19 14:48:11 UTC) #53
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years ago (2016-12-19 15:59:17 UTC) #56
commit-bot: I haz the power
4 years ago (2016-12-19 16:00:48 UTC) #58
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/4b4ca6521434859be5c614f961ec72b9e19826cc
Cr-Commit-Position: refs/heads/master@{#439481}

Powered by Google App Engine
This is Rietveld 408576698