There is a bunch of code in the flow to pass ownership of a presentation request from PSImpl -> PSDImpl -> MRDC -> MRUI. It would streamline this code path to make the request a move-capable or move-only type instead of transferring it via unique_ptr<> a bunch of places.
Not sure whether the original bug description is still relevant since PresentationRequest behaves more like a data struct, and that we no longer pass it around with unique_ptr (instead, const ref is used). That said, keeping this bug open since I am doing a round of code cleanup right now involving it. (Related: bug 708209 )
I think a const ref is fine, although IIUC the PresentationRequest is bound to a number of callbacks. In that case, would prefer to either copy it or add a move constructor depending on the semantics, instead of moving it around via std::unique_ptr.
Comment 1 by sko...@chromium.org
, Nov 17 2016