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

Issue 2888743002: Switch temporary_file_stream to the TaskScheduler API. (Closed)

Created:
3 years, 7 months ago by Sébastien Marchand
Modified:
3 years, 6 months ago
Reviewers:
robliao, fdoray, gab, mmenke
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch temporary_file_stream to the TaskScheduler API. BUG=689520 Review-Url: https://codereview.chromium.org/2888743002 Cr-Commit-Position: refs/heads/master@{#478652} Committed: https://chromium.googlesource.com/chromium/src/+/4ee99e970e98366c707549fa52a1e2c4ac6b3d4d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Francois' comments. #

Total comments: 2

Patch Set 3 : Add base::TaskShutdownBehavior::BLOCK_SHUTDOWN to the task traits #

Total comments: 8

Patch Set 4 : Switch to USER_VISIBLE priority #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M content/browser/loader/temporary_file_stream.cc View 1 2 3 4 chunks +16 lines, -10 lines 1 comment Download
M content/browser/loader/temporary_file_stream_unittest.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 46 (24 generated)
Sébastien Marchand
PTAL https://codereview.chromium.org/2888743002/diff/1/content/browser/loader/temporary_file_stream_unittest.cc File content/browser/loader/temporary_file_stream_unittest.cc (right): https://codereview.chromium.org/2888743002/diff/1/content/browser/loader/temporary_file_stream_unittest.cc#newcode115 content/browser/loader/temporary_file_stream_unittest.cc:115: base::RunLoop().RunUntilIdle(); I'm not sure if this RunUntilIdle is ...
3 years, 7 months ago (2017-05-17 14:49:49 UTC) #6
fdoray
lgtm https://codereview.chromium.org/2888743002/diff/1/content/browser/loader/temporary_file_stream.cc File content/browser/loader/temporary_file_stream.cc (right): https://codereview.chromium.org/2888743002/diff/1/content/browser/loader/temporary_file_stream.cc#newcode66 content/browser/loader/temporary_file_stream.cc:66: base::RetainedRef(task_runner))); s/base::RetainedRef(task_runner)/std::move(task_runner)/ RetainedRef is only useful when you ...
3 years, 7 months ago (2017-05-17 15:15:49 UTC) #7
Sébastien Marchand
+mmenke@ for owner review/approval.
3 years, 7 months ago (2017-05-17 18:33:35 UTC) #9
mmenke
https://codereview.chromium.org/2888743002/diff/20001/content/browser/loader/temporary_file_stream.cc File content/browser/loader/temporary_file_stream.cc (right): https://codereview.chromium.org/2888743002/diff/20001/content/browser/loader/temporary_file_stream.cc#newcode58 content/browser/loader/temporary_file_stream.cc:58: {base::MayBlock(), base::TaskPriority::BACKGROUND}); Should we use BLOCK_SHUTDOWN to try and ...
3 years, 7 months ago (2017-05-17 18:43:50 UTC) #10
Sébastien Marchand
https://codereview.chromium.org/2888743002/diff/20001/content/browser/loader/temporary_file_stream.cc File content/browser/loader/temporary_file_stream.cc (right): https://codereview.chromium.org/2888743002/diff/20001/content/browser/loader/temporary_file_stream.cc#newcode58 content/browser/loader/temporary_file_stream.cc:58: {base::MayBlock(), base::TaskPriority::BACKGROUND}); On 2017/05/17 18:43:49, mmenke wrote: > Should ...
3 years, 7 months ago (2017-05-17 18:51:35 UTC) #12
mmenke
On 2017/05/17 18:51:35, Sébastien Marchand wrote: > https://codereview.chromium.org/2888743002/diff/20001/content/browser/loader/temporary_file_stream.cc > File content/browser/loader/temporary_file_stream.cc (right): > > https://codereview.chromium.org/2888743002/diff/20001/content/browser/loader/temporary_file_stream.cc#newcode58 ...
3 years, 7 months ago (2017-05-17 18:55:00 UTC) #14
Sébastien Marchand
Thanks for the quick review!
3 years, 7 months ago (2017-05-17 18:55:38 UTC) #15
Sébastien Marchand
FYI this is blocked by crbug.com/724086
3 years, 7 months ago (2017-05-18 14:03:41 UTC) #18
gab
You can forgo all the comments about raw ptrs being wrong, it was like that ...
3 years, 7 months ago (2017-05-19 00:10:52 UTC) #22
mmenke
On 2017/05/19 00:10:52, gab wrote: > You can forgo all the comments about raw ptrs ...
3 years, 7 months ago (2017-05-22 15:43:22 UTC) #25
Sébastien Marchand
https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc File content/browser/loader/temporary_file_stream.cc (right): https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc#newcode59 content/browser/loader/temporary_file_stream.cc:59: base::TaskShutdownBehavior::BLOCK_SHUTDOWN}); +robliao@ (as gab@ and fdoray@ are ooo today): ...
3 years, 7 months ago (2017-05-22 16:55:21 UTC) #27
gab
https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc File content/browser/loader/temporary_file_stream.cc (right): https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc#newcode59 content/browser/loader/temporary_file_stream.cc:59: base::TaskShutdownBehavior::BLOCK_SHUTDOWN}); On 2017/05/22 16:55:21, Sébastien Marchand wrote: > +robliao@ ...
3 years, 7 months ago (2017-05-23 15:35:17 UTC) #28
mmenke
On 2017/05/23 15:35:17, gab wrote: > https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc > File content/browser/loader/temporary_file_stream.cc (right): > > https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc#newcode59 > ...
3 years, 7 months ago (2017-05-23 15:37:04 UTC) #29
gab
On 2017/05/23 15:37:04, mmenke wrote: > On 2017/05/23 15:35:17, gab wrote: > > > https://codereview.chromium.org/2888743002/diff/40001/content/browser/loader/temporary_file_stream.cc ...
3 years, 7 months ago (2017-05-23 15:59:41 UTC) #30
Sébastien Marchand
k, I've switched the priority to USER_VISIBLE
3 years, 7 months ago (2017-05-23 16:42:55 UTC) #33
Sébastien Marchand
The trybots are happy with this approach, PTAL.
3 years, 7 months ago (2017-05-23 18:02:25 UTC) #36
gab
lgtm % question for OWNERS https://codereview.chromium.org/2888743002/diff/60001/content/browser/loader/temporary_file_stream.cc File content/browser/loader/temporary_file_stream.cc (right): https://codereview.chromium.org/2888743002/diff/60001/content/browser/loader/temporary_file_stream.cc#newcode59 content/browser/loader/temporary_file_stream.cc:59: base::TaskShutdownBehavior::BLOCK_SHUTDOWN}); Does this need ...
3 years, 7 months ago (2017-05-23 22:12:37 UTC) #37
mmenke
On 2017/05/23 22:12:37, gab wrote: > lgtm % question for OWNERS > > https://codereview.chromium.org/2888743002/diff/60001/content/browser/loader/temporary_file_stream.cc > ...
3 years, 7 months ago (2017-05-24 00:23:12 UTC) #38
mmenke
[Sébastien Marchand]: Ping! Are you planning on landing this?
3 years, 6 months ago (2017-06-12 15:03:02 UTC) #39
Sébastien Marchand
Sure!
3 years, 6 months ago (2017-06-12 15:10:01 UTC) #40
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/2888743002/60001
3 years, 6 months ago (2017-06-12 15:10:31 UTC) #43
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 16:24:19 UTC) #46
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4ee99e970e98366c707549fa52a1...

Powered by Google App Engine
This is Rietveld 408576698