
Replace some raw new objects with unique_ptr. This CL is part of the change that applies documented best practices to examples. Note that Widget and WidgetDelegate handle their lifetime with raw pointers. They are not touched in this CL. Bug: 897377 Change-Id: I1f819d56c21c97d58bdca0cd21ad66865200e346 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315221 Reviewed-by: Wei Li <weili@chromium.org> Commit-Queue: Keren Zhu <kerenzhu@chromium.org> Auto-Submit: Keren Zhu <kerenzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#791575}