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

Issue 2753953003: Remove RunMixin from base::Callback implementation (Closed)

Created:
3 years, 9 months ago by tzik
Modified:
3 years, 9 months ago
Reviewers:
dcheng
CC:
chromium-reviews, asanka, jsbell+serviceworker_chromium.org, posciak+watch_chromium.org, ntp-dev+reviews_chromium.org, vmpstr+watch_chromium.org, extensions-reviews_chromium.org, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, chromium-apps-reviews_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, michaeln, horo+watch_chromium.org, noyau+watch_chromium.org, kinuko+watch, shimazu+serviceworker_chromium.org, blink-worker-reviews_chromium.org, michaelpg
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove RunMixin from base::Callback implementation RunMixin had provided to define rvalue-qualified Callback::Run for OnceCallback without overloading Callback::Run. This is needed since some user took the method pointer of Callback::Run. After landing all depends-on CLs, the method pointer of Callback::Run will go away and we will be able to remove RunMixin. In addition, this CL adds an overload of Callback::Run for rvalue-qualified RepeatingCallback that nullify the callback itself, so that `std::move(callback).Run()` is more consistent to OnceCallback and RepeatingCallback. Review-Url: https://codereview.chromium.org/2753953003 Cr-Commit-Position: refs/heads/master@{#458340} Committed: https://chromium.googlesource.com/chromium/src/+/ecb1b24070b8cbf7958f05ecad9373b979e212b9

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : rebase #

Patch Set 5 : +test #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -68 lines) Patch
M base/callback.h View 1 2 3 chunks +22 lines, -68 lines 0 comments Download
M base/callback_unittest.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (24 generated)
tzik
PTAL
3 years, 9 months ago (2017-03-17 14:10:00 UTC) #15
dcheng
LGTM Did you check that the nocompile tests all still pass?
3 years, 9 months ago (2017-03-17 18:31:26 UTC) #18
tzik
On 2017/03/17 18:31:26, dcheng wrote: > LGTM > > Did you check that the nocompile ...
3 years, 9 months ago (2017-03-21 07:16:14 UTC) #23
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/2753953003/100001
3 years, 9 months ago (2017-03-21 07:16:48 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 07:26:50 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ecb1b24070b8cbf7958f05ecad93...

Powered by Google App Engine
This is Rietveld 408576698