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

Issue 2486603003: Redirect HistoryService thread to TaskScheduler via a field trial. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years ago
Reviewers:
robliao, gab, brettw, Nicolas Zea, sky
CC:
chromium-reviews, robliao, maxbogue
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Redirect HistoryService thread to TaskScheduler via a field trial. When the "RedirectHistoryService" variation param of the BrowserScheduler experiment is set, HistoryService doesn't create a dedicated thread to run HistoryBackend operations. Instead, it forwards these operations to a TaskScheduler sequence. BUG=661143 Committed: https://crrev.com/0cab87a48e26580170d502dc54a195cecd5cf1ca Cr-Commit-Position: refs/heads/master@{#433855}

Patch Set 1 #

Patch Set 2 : self-review #

Total comments: 2

Patch Set 3 : CR brettw #17 (do not involve chrome_browser_main) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -123 lines) Patch
M components/history/core/browser/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A components/history/core/browser/DEPS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.h View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M components/history/core/browser/history_service.cc View 1 2 51 chunks +122 lines, -120 lines 0 comments Download
M testing/variations/fieldtrial_testing_config.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (14 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-08 15:24:41 UTC) #2
sky
In the bug you mentioned: "- The history thread is currently joined when the HistoryService ...
4 years, 1 month ago (2016-11-08 19:03:28 UTC) #3
gab
Re. shutdown, see suggestion below. https://codereview.chromium.org/2486603003/diff/20001/components/history/core/browser/history_service.cc File components/history/core/browser/history_service.cc (right): https://codereview.chromium.org/2486603003/diff/20001/components/history/core/browser/history_service.cc#newcode874 components/history/core/browser/history_service.cc:874: backend_task_runner_ = nullptr; To ...
4 years, 1 month ago (2016-11-08 19:15:43 UTC) #5
gab
On 2016/11/08 19:15:43, gab wrote: > Re. shutdown, see suggestion below. Other than that, lgtm. ...
4 years, 1 month ago (2016-11-08 19:15:53 UTC) #6
robliao
https://codereview.chromium.org/2486603003/diff/20001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2486603003/diff/20001/chrome/browser/chrome_browser_main.cc#newcode342 chrome/browser/chrome_browser_main.cc:342: // TODO(fdoray): Remove this when https://crbug.com/661143 concludes. Add this ...
4 years, 1 month ago (2016-11-08 22:21:50 UTC) #8
sky
On 2016/11/08 22:21:50, robliao wrote: > https://codereview.chromium.org/2486603003/diff/20001/chrome/browser/chrome_browser_main.cc > File chrome/browser/chrome_browser_main.cc (right): > > https://codereview.chromium.org/2486603003/diff/20001/chrome/browser/chrome_browser_main.cc#newcode342 > ...
4 years, 1 month ago (2016-11-08 23:05:09 UTC) #11
Nicolas Zea
LGTM from a sync perspective
4 years, 1 month ago (2016-11-09 20:23:57 UTC) #12
fdoray
On 2016/11/08 19:03:28, sky wrote: > In the bug you mentioned: > "- The history ...
4 years, 1 month ago (2016-11-17 20:51:44 UTC) #14
sky
sky->brettw as he can hopefully better know if we need to make sure we have ...
4 years, 1 month ago (2016-11-17 21:19:07 UTC) #16
brettw
Is there a way that we can structure them to avoid touching chrome_browser_main every time? ...
4 years, 1 month ago (2016-11-17 21:45:10 UTC) #17
fdoray
On 2016/11/17 21:45:10, brettw (ping on IM after 24h) wrote: > Is there a way ...
4 years, 1 month ago (2016-11-17 22:00:07 UTC) #18
brettw
In the common case we just need to be sure that the databases are closed ...
4 years, 1 month ago (2016-11-17 22:33:01 UTC) #19
fdoray
sky@ and brettw@: PTAL chrome_browser_main is no longer involved in this change.
4 years ago (2016-11-21 20:35:36 UTC) #20
brettw
Do you understand the profile switch issues I mentioned in the previous message?
4 years ago (2016-11-21 21:23:20 UTC) #21
fdoray
On 2016/11/21 21:23:20, brettw (ping on IM after 24h) wrote: > Do you understand the ...
4 years ago (2016-11-21 21:31:17 UTC) #22
brettw
Sounds good, LGTM
4 years ago (2016-11-21 21:34:56 UTC) #23
fdoray
On 2016/11/21 21:34:56, brettw (ping on IM after 24h) wrote: > Sounds good, LGTM sky@: ...
4 years ago (2016-11-21 21:41:16 UTC) #24
gab
On 2016/11/21 21:31:17, fdoray wrote: > On 2016/11/21 21:23:20, brettw (ping on IM after 24h) ...
4 years ago (2016-11-21 21:41:32 UTC) #25
sky
Brett covers it all, so don't wait for me.
4 years ago (2016-11-21 22:57:39 UTC) #26
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/2486603003/40001
4 years ago (2016-11-22 13:12:48 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-22 14:18:32 UTC) #34
commit-bot: I haz the power
4 years ago (2016-11-22 14:20:19 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0cab87a48e26580170d502dc54a195cecd5cf1ca
Cr-Commit-Position: refs/heads/master@{#433855}

Powered by Google App Engine
This is Rietveld 408576698