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

Issue 2868843002: Use OnceCallback on Mojo interfaces in //device/screen_orientation (Closed)

Created:
3 years, 7 months ago by tzik
Modified:
3 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-screen-orientation_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use OnceCallback on Mojo interfaces in //device/screen_orientation 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/screen_orientation 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/2868843002 Cr-Commit-Position: refs/heads/master@{#472013} Committed: https://chromium.googlesource.com/chromium/src/+/2179c956db8f9a1817f8cd93b19b0ac886d3050a

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

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

Messages

Total messages: 41 (27 generated)
blundell
Am I supposed to review this? I don't think that you hit publish ;).
3 years, 7 months ago (2017-05-10 14:46:32 UTC) #12
tzik
On 2017/05/10 14:46:32, blundell wrote: > Am I supposed to review this? I don't think ...
3 years, 7 months ago (2017-05-11 09:26:37 UTC) #15
tzik
Anyway, now it's ready! PTAL.
3 years, 7 months ago (2017-05-11 09:32:20 UTC) #16
blundell
lgtm
3 years, 7 months ago (2017-05-11 15:44:46 UTC) #19
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/2868843002/40001
3 years, 7 months ago (2017-05-12 03:56:59 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/434970)
3 years, 7 months ago (2017-05-12 04:06:17 UTC) #23
tzik
+mlamouri as //content/browser/screen_orientation via //third_party/WebKit/Source/modules/screen_orientation. PTAL.
3 years, 7 months ago (2017-05-15 06:10:04 UTC) #25
mlamouri (slow - plz ping)
lgtm
3 years, 7 months ago (2017-05-15 14:45:00 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/2868843002/40001
3 years, 7 months ago (2017-05-15 15:05:26 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/370704)
3 years, 7 months ago (2017-05-15 15:57:53 UTC) #30
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/2868843002/40001
3 years, 7 months ago (2017-05-16 01:50:27 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/371463)
3 years, 7 months ago (2017-05-16 02:21:30 UTC) #34
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/2868843002/40001
3 years, 7 months ago (2017-05-16 02:59:22 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 04:10:14 UTC) #41
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2179c956db8f9a1817f8cd93b19b...

Powered by Google App Engine
This is Rietveld 408576698