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

Issue 2678303002: Pass Callback by value on PostTaskAndReply family (Closed)

Created:
3 years, 10 months ago by tzik
Modified:
3 years, 10 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org, Eugene But (OOO till 7-30), robliao+watch_chromium.org, jam, gab+watch_chromium.org, darin-cc_chromium.org, fdoray+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass Callback by value on PostTaskAndReply family This is a less controversial part of OnceCallback migration of PostTaskAndReply. https://codereview.chromium.org/2657603004/ After this CL PostTaskAndReply family take the callback by value, and move it to their storage. That reduces the chance to leave a reference to the callback on the original thread. Review-Url: https://codereview.chromium.org/2678303002 Cr-Commit-Position: refs/heads/master@{#448965} Committed: https://chromium.googlesource.com/chromium/src/+/03527510144419d0b9b7b8f0c31c4c199f93a18c

Patch Set 1 #

Patch Set 2 : #include #

Total comments: 18

Patch Set 3 : +#include <utility> #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -123 lines) Patch
M base/task/cancelable_task_tracker.h View 1 2 2 chunks +11 lines, -13 lines 0 comments Download
M base/task/cancelable_task_tracker.cc View 2 chunks +7 lines, -10 lines 0 comments Download
M base/task_runner.h View 2 chunks +3 lines, -3 lines 0 comments Download
M base/task_runner.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M base/task_runner_util.h View 1 2 2 chunks +11 lines, -10 lines 0 comments Download
M base/task_scheduler/post_task.h View 1 2 5 chunks +17 lines, -14 lines 0 comments Download
M base/task_scheduler/post_task.cc View 1 2 3 chunks +10 lines, -6 lines 0 comments Download
M base/threading/post_task_and_reply_impl.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M base/threading/post_task_and_reply_impl.cc View 1 2 3 chunks +9 lines, -8 lines 0 comments Download
M base/threading/worker_pool.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M base/threading/worker_pool.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/browser_thread_impl.cc View 1 2 3 chunks +9 lines, -9 lines 0 comments Download
M content/public/browser/browser_thread.h View 1 2 3 chunks +11 lines, -11 lines 0 comments Download
M ios/web/public/web_thread.h View 1 2 3 chunks +10 lines, -9 lines 0 comments Download
M ios/web/web_thread_impl.cc View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M storage/browser/quota/quota_manager.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M storage/browser/quota/quota_manager.cc View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
tzik
PTAL
3 years, 10 months ago (2017-02-07 07:59:11 UTC) #7
dcheng
Any chance you can upload this PS to the other review? It'll make it easier ...
3 years, 10 months ago (2017-02-07 08:01:48 UTC) #8
tzik
On 2017/02/07 08:01:48, dcheng wrote: > Any chance you can upload this PS to the ...
3 years, 10 months ago (2017-02-07 08:39:07 UTC) #9
dcheng
lgtm
3 years, 10 months ago (2017-02-07 09:27:37 UTC) #10
gab
lgtm % missing <utility> includes (note: that's a really annoying IWYU side-effect of std::move :(...) ...
3 years, 10 months ago (2017-02-07 15:46:08 UTC) #13
tzik
Adding marq and kinuko for OWNERS review. PTAL to: marq: //ios/web kinuko: //content and //storage ...
3 years, 10 months ago (2017-02-08 01:39:33 UTC) #15
kinuko
> kinuko: //content and //storage lgtm
3 years, 10 months ago (2017-02-08 03:57:16 UTC) #16
marq (ping after 24h)
ios/ LGTM
3 years, 10 months ago (2017-02-08 08:14:18 UTC) #17
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/2678303002/40001
3 years, 10 months ago (2017-02-08 08:24:40 UTC) #20
commit-bot: I haz the power
Failed to apply patch for storage/browser/quota/quota_manager.h: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-08 10:38:53 UTC) #22
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/2678303002/60001
3 years, 10 months ago (2017-02-08 11:00:33 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 12:30:33 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/03527510144419d0b9b7b8f0c31c...

Powered by Google App Engine
This is Rietveld 408576698