commit | 6de2926e9bf52bafe438fd48957392d55a7d5a55 | [log] [tgz] |
---|---|---|
author | Sylvain Defresne <sdefresne@chromium.org> | Tue May 21 14:15:10 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 21 14:15:10 2019 |
tree | 56325b3d223fb9d24599e1cf5ca5fc25b7b0ffca | |
parent | e0fb49a32ca43138b3834eba3919bbee3418fb84 [diff] |
Convert FaviconService callbacks to base::OnceCallback<> FaviconService's callbacks are only invoked once but they predate the introduction of base::OnceCallback so they are declared as base::Callback which correspond to base::RepeatingCallback. Change them to use base::OnceCallback to reflect that they will only be invoked once. This will allow removing the pattern base::Passed(std::moved(...)) in the call to base::Bind() in a followup CL. Change MockFaviconService to remove a workaround for old version of gMock that did not support move-only parameters. Removing the workaround required also removing the PostReply and other action template to instead use lambdas (ByMove cannot be used as it is limited to Return action as far as I can tell). Bug: 759710, 714018 Change-Id: Id721ce07a3f1b305b326c84465259f7b45424798 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1613181 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Auto-Submit: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#661713}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .