Add a new SetContentsView API to accept unique_ptr
Since the majority of use cases is to let Widget to own its content view, and we are moving towards removing those cases otherwise, this CL adds a new API to make the ownership transfer clearer. In the followup CL, we should move most of current use cases to adopt this new API. BUG=1044687 Change-Id: Ie21fd78cda1c74252171d543f1840405b8d48a10 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2198363Reviewed-by:Robert Liao <robliao@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Commit-Queue: Wei Li <weili@chromium.org> Cr-Commit-Position: refs/heads/master@{#768877}
Showing
This diff is collapsed.
Please register or sign in to comment