Change pass by value to pass by ref to const.
This is a follow up for https://chromium-review.googlesource.com/c/chromium/src/+/2495332 The idea is that passing input parameters by const references, when possible is still the C++ style. I don't recall what the specific issue was when the code did not build in the original CL. At any rate, this change does not affect the lifetime of any of the parameters, since the binding of the references in callbacks is always by value, unless the caller specifies std::ref of std::cref. Bug: 1147094 Change-Id: I47c9aef89ddbeea386e6efb9f8ae42d3385c3601 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2547430Reviewed-by:Joshua Pawlicki <waffles@chromium.org> Commit-Queue: Sorin Jianu <sorin@chromium.org> Cr-Commit-Position: refs/heads/master@{#829236}
Showing
Please register or sign in to comment