Change const-ref-to-smart-pointer to pointer in WebXR
Passing a `mojo::StructPtr` by const-ref is basically just passing a `std::unique_ptr` by const-ref, which is disallowed by the style guide. https://google.github.io/styleguide/cppguide.html#Ownership_and_Smart_Pointers It's also inefficient because it requires a double-indirection to access any members of the pointee. Change-Id: Ic579a5ae19dbc5ff871bd07e7ef5c92f410a83b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1977396Reviewed-by:Alexander Cooper <alcooper@chromium.org> Reviewed-by:
Klaus Weidner <klausw@chromium.org> Commit-Queue: Will Cassella <cassew@google.com> Cr-Commit-Position: refs/heads/master@{#727081}
Showing
Please register or sign in to comment