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

Issue 2867743002: Use OnceCallback on Mojo interfaces in //components/password_manager (Closed)

Created:
3 years, 7 months ago by tzik
Modified:
3 years, 7 months ago
Reviewers:
engedy
CC:
chromium-reviews, jam, gcasto+watchlist_chromium.org, darin-cc_chromium.org, vabr+watchlistpasswordmanager_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use OnceCallback on Mojo interfaces in //components/password_manager 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 //components/password_manager 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/2867743002 Cr-Commit-Position: refs/heads/master@{#470294} Committed: https://chromium.googlesource.com/chromium/src/+/e97ac8b97fca517c76bf5345611a47007dc2c486

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -36 lines) Patch
M components/password_manager/content/browser/credential_manager_impl.h View 1 chunk +3 lines, -5 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_impl.cc View 9 chunks +18 lines, -15 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_impl_unittest.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download
M components/password_manager/content/common/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/content/renderer/credential_manager_client_browsertest.cc View 1 2 chunks +12 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
engedy
LGTM, thanks!
3 years, 7 months ago (2017-05-09 09:01:55 UTC) #10
tzik
On 2017/05/09 09:01:55, engedy wrote: > LGTM, thanks! Thanks for reviewing!
3 years, 7 months ago (2017-05-09 09:06:07 UTC) #11
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/2867743002/20001
3 years, 7 months ago (2017-05-09 10:58:16 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 12:53:19 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e97ac8b97fca517c76bf5345611a...

Powered by Google App Engine
This is Rietveld 408576698