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

Issue 2910183002: Revert of [reland] Use TaskScheduler instead of SequencedWorkerPool in snapshot_cache.mm. (Closed)

Created:
3 years, 6 months ago by sdefresne
Modified:
3 years, 6 months ago
Reviewers:
jif, fdoray
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of [reland] Use TaskScheduler instead of SequencedWorkerPool in snapshot_cache.mm. (patchset #8 id:140001 of https://codereview.chromium.org/2881873002/ ) Reason for revert: This CL is incorrect. SnapshotCache is a singleton that is indirectly accessed by multiple unit tests (for example MainController unit tests). CreateSequencedTaskRunnerWithTraits() returns an object that reference TaskScheduler::GetInstance(). This TaskScheduler object is detroyed between each test, thus we have a singleton object pointing to de-allocated memory. SnapshotCache need to be changed to no longer be a singleton, this is tracked by https://bugs.chromium.org/p/chromium/issues/detail?id=727597. Original issue's description: > [reland] Use TaskScheduler instead of SequencedWorkerPool in snapshot_cache.mm. > > Reland with fix in test. > > SequencedWorkerPool is being deprecated in favor of TaskScheduler. > > BUG=667892 > R=jif@chromium.org > > Review-Url: https://codereview.chromium.org/2881873002 > Cr-Original-Commit-Position: refs/heads/master@{#472052} > Committed: https://chromium.googlesource.com/chromium/src/+/aa5299ae23a57ca5dce00a11da3ac8e73849351f > Review-Url: https://codereview.chromium.org/2881873002 > Cr-Commit-Position: refs/heads/master@{#475107} > Committed: https://chromium.googlesource.com/chromium/src/+/a11be0d57a4e4f214588bbd6fab9398824802b7f TBR=jif@chromium.org,fdoray@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=667892 Review-Url: https://codereview.chromium.org/2910183002 Cr-Commit-Position: refs/heads/master@{#475518} Committed: https://chromium.googlesource.com/chromium/src/+/cf9d12f1999e34f40e9e3ee9e40829d4529cb55b

Patch Set 1 #

Patch Set 2 : Rebase on http://crrev.com/2915583002. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -24 lines) Patch
M ios/chrome/browser/snapshots/snapshot_cache.mm View 1 7 chunks +14 lines, -22 lines 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache_unittest.mm View 1 2 chunks +3 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (9 generated)
sdefresne
Created Revert of [reland] Use TaskScheduler instead of SequencedWorkerPool in snapshot_cache.mm.
3 years, 6 months ago (2017-05-30 10:15:06 UTC) #2
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/2910183002/1
3 years, 6 months ago (2017-05-30 10:15:17 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/106424)
3 years, 6 months ago (2017-05-30 10:23:36 UTC) #5
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/2910183002/70001
3 years, 6 months ago (2017-05-30 13:57:22 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:70001) as https://chromium.googlesource.com/chromium/src/+/cf9d12f1999e34f40e9e3ee9e40829d4529cb55b
3 years, 6 months ago (2017-05-30 14:01:50 UTC) #14
jif
3 years, 6 months ago (2017-05-31 14:45:27 UTC) #15
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698