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

Issue 2866003002: Use OnceCallback on Mojo interfaces in //device/geolocation (Closed)

Created:
3 years, 7 months ago by tzik
Modified:
3 years, 6 months ago
Reviewers:
mcasas
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use OnceCallback on Mojo interfaces in //device/geolocation This CL flips `use_once_calback` flag on the Mojo code generator, and fixes all compile errors after it. After this CL, Mojo interfaces in //device/geolocation starts using base::OnceCallback instead of base::Callback on its return value handling. The migration recipe was: - Convert pass-by-ref callback objects to pass-by-value. - Use std::move() to forward it to other consumer, or to invoke it with Callback::Run(). - Handle wherever copies are required manually. - Check if the conversion doesn't change the semantics. As the transfer and invocation clobber the callback object, care about use-after-move. It's considered safe to consume almost scoped-out callback. BUG=714018 Review-Url: https://codereview.chromium.org/2866003002 Cr-Commit-Position: refs/heads/master@{#475807} Committed: https://chromium.googlesource.com/chromium/src/+/7fc6e8fd72e4a9fc877c53904a0644485b863bdc

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 lines) Patch
M device/geolocation/geolocation_service_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M device/geolocation/geolocation_service_impl.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M device/geolocation/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (25 generated)
tzik
PTAL
3 years, 7 months ago (2017-05-11 09:21:44 UTC) #14
tzik
mcasas: ping. Could you take a look?
3 years, 6 months ago (2017-05-29 09:15:43 UTC) #19
mcasas
On 2017/05/29 09:15:43, tzik wrote: > mcasas: ping. Could you take a look? Oops, totally ...
3 years, 6 months ago (2017-05-30 17:45:30 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/2866003002/60001
3 years, 6 months ago (2017-05-31 03:13:42 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/222124) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-05-31 03:15:47 UTC) #26
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/2866003002/80001
3 years, 6 months ago (2017-05-31 03:30:33 UTC) #29
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 04:56:06 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7fc6e8fd72e4a9fc877c53904a06...

Powered by Google App Engine
This is Rietveld 408576698