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

Issue 2842493004: Add OnceCallback support to PostTaskAndReplyWithResult (Closed)

Created:
3 years, 8 months ago by tzik
Modified:
3 years, 7 months ago
Reviewers:
kinuko, gab, kinaba
CC:
chromium-reviews, jam, danakj+watch_chromium.org, darin-cc_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add OnceCallback support to PostTaskAndReplyWithResult This CL adds OnceCallback support to PostTaskAndReplyWithResult impls in task_runner_util.h and browser_thread.h, which are left overs of the OnceCallback support of PostTask family. In addition, this CL removes the function pointer usage of PTARWR in //components/drive, so that we can define an overload of PTARWR for legacy base::Callback. BUG=714018 Review-Url: https://codereview.chromium.org/2842493004 Cr-Commit-Position: refs/heads/master@{#468680} Committed: https://chromium.googlesource.com/chromium/src/+/d5346b598e8bb9c72acd8a81e51a593e99f23829

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : TODO(tzik) -> TODO(crbug.com/714018) #

Total comments: 4

Patch Set 8 : static_cast -> ctor call #

Patch Set 9 : s/can not/cannot/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -18 lines) Patch
M base/task_runner_util.h View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -8 lines 0 comments Download
M components/drive/chromeos/change_list_loader.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M components/drive/chromeos/directory_loader.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/drive/chromeos/file_system/search_operation.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M components/drive/drive_api_util.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M components/drive/drive_api_util.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/browser_thread.h View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (29 generated)
tzik
PTAL to: kinaba: //components/drive gab: //base kinuko: //content
3 years, 7 months ago (2017-05-01 04:13:15 UTC) #22
kinaba
components/drive lgtm
3 years, 7 months ago (2017-05-01 04:28:45 UTC) #23
kinuko
lgtm https://codereview.chromium.org/2842493004/diff/100001/content/public/browser/browser_thread.h File content/public/browser/browser_thread.h (right): https://codereview.chromium.org/2842493004/diff/100001/content/public/browser/browser_thread.h#newcode157 content/public/browser/browser_thread.h:157: // TODO(tzik): Update all callers of the Callback ...
3 years, 7 months ago (2017-05-01 04:48:47 UTC) #24
tzik
https://codereview.chromium.org/2842493004/diff/100001/content/public/browser/browser_thread.h File content/public/browser/browser_thread.h (right): https://codereview.chromium.org/2842493004/diff/100001/content/public/browser/browser_thread.h#newcode157 content/public/browser/browser_thread.h:157: // TODO(tzik): Update all callers of the Callback version ...
3 years, 7 months ago (2017-05-01 05:13:01 UTC) #27
gab
base lgtm w/ comment https://codereview.chromium.org/2842493004/diff/120001/base/task_runner_util.h File base/task_runner_util.h (right): https://codereview.chromium.org/2842493004/diff/120001/base/task_runner_util.h#newcode51 base/task_runner_util.h:51: // we can not use ...
3 years, 7 months ago (2017-05-01 18:14:35 UTC) #30
tzik
https://codereview.chromium.org/2842493004/diff/120001/base/task_runner_util.h File base/task_runner_util.h (right): https://codereview.chromium.org/2842493004/diff/120001/base/task_runner_util.h#newcode51 base/task_runner_util.h:51: // we can not use template deduction and object ...
3 years, 7 months ago (2017-05-02 15:28:12 UTC) #31
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/2842493004/160001
3 years, 7 months ago (2017-05-02 15:29:05 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 16:48:38 UTC) #37
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/d5346b598e8bb9c72acd8a81e51a...

Powered by Google App Engine
This is Rietveld 408576698