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

Issue 2869673002: Use OnceCallback on Mojo interfaces in //components/autofill (Closed)

Created:
3 years, 7 months ago by tzik
Modified:
3 years, 7 months ago
Reviewers:
sebsg, engedy, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use OnceCallback on Mojo interfaces in //components/autofill 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/autofill 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/2869673002 Cr-Commit-Position: refs/heads/master@{#471170} Committed: https://chromium.googlesource.com/chromium/src/+/4772a01d5433374cd8dd6f4a9fedaff7eafbd5a7

Patch Set 1 #

Patch Set 2 : rebase. +#include #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -28 lines) Patch
M chrome/browser/password_manager/chrome_password_manager_client_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/common/BUILD.gn View 2 2 chunks +0 lines, -6 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits_unittest.cc View 1 2 2 chunks +18 lines, -17 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (20 generated)
engedy
*password_manager* LGTM.
3 years, 7 months ago (2017-05-09 08:58:07 UTC) #10
sebsg
autofill lgtm
3 years, 7 months ago (2017-05-10 14:04:45 UTC) #13
tzik
I forgot to publish the request. Thanks for reviewing engedy and sebsg! Adding dcheng as ...
3 years, 7 months ago (2017-05-11 07:35:52 UTC) #14
tzik
Resending after actually added dcheng. PTAL to autofill_types_struct_traits_unittest.cc.
3 years, 7 months ago (2017-05-11 07:36:52 UTC) #16
sebsg
still lgtm for autofill
3 years, 7 months ago (2017-05-11 14:53:40 UTC) #21
dcheng
ipc security lgtm
3 years, 7 months ago (2017-05-11 21:00:28 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/2869673002/40001
3 years, 7 months ago (2017-05-12 01:38:27 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 01:46:59 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4772a01d5433374cd8dd6f4a9fed...

Powered by Google App Engine
This is Rietveld 408576698