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

Issue 2611053003: Flush TaskScheduler in ProfileBrowserTest.*. (Closed)

Created:
3 years, 11 months ago by fdoray
Modified:
3 years, 11 months ago
Reviewers:
robliao, gab, anthonyvd
CC:
chromium-reviews, rginda+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Flush TaskScheduler in ProfileBrowserTest.*. When the BrowserScheduler/RedirectHistoryService experiment is disabled, HistoryService uses a dedicated thread for backend operations. This thread is joined when the HistoryService is deleted. When the BrowserScheduler/RedirectHistoryService experiment is enabled, HistoryService uses a TaskScheduler sequence for backend operations. These tasks can run after the HistoryService has been deleted. History backend tasks access databases in the profile directory. A crash occurs if these accesses occur after the profile directory has been deleted. To prevent this from happening in ProfileBrowserTest.*., this CL adds code to flush TaskScheduler before deleting the profile directory. BUG=661143, 676714 Review-Url: https://codereview.chromium.org/2611053003 Cr-Commit-Position: refs/heads/master@{#441951} Committed: https://chromium.googlesource.com/chromium/src/+/584e16efe96fd3b746987ac7afc357798f512921

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M chrome/browser/profiles/profile_browsertest.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
fdoray
PTAL
3 years, 11 months ago (2017-01-05 19:35:03 UTC) #5
gab
lgtm, thanks
3 years, 11 months ago (2017-01-05 22:11:54 UTC) #8
fdoray
anthonyvd@: PTAL
3 years, 11 months ago (2017-01-05 22:32:49 UTC) #10
robliao
lgtm
3 years, 11 months ago (2017-01-06 02:33:17 UTC) #11
anthonyvd
lgtm
3 years, 11 months ago (2017-01-06 16:48:06 UTC) #12
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/2611053003/1
3 years, 11 months ago (2017-01-06 16:48:53 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 16:54:10 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/584e16efe96fd3b746987ac7afc3...

Powered by Google App Engine
This is Rietveld 408576698