ui/wm: Cleanup usage of scoped_ptr.
commit0e085c99701289ab553ac857f2c65a12dcc27efb
authortfarina <tfarina@chromium.org>
Wed, 17 Dec 2014 03:23:31 +0000 (16 19:23 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Dec 2014 03:23:47 +0000 (17 03:23 +0000)
tree24de976de42f10384431f062d5a20ceec991ed55
parentce9f11ad6c803515f5bc170629a2f795bd275d43
ui/wm: Cleanup usage of scoped_ptr.

* Return nullptr whenever possible.
* Use make_scoped_ptr() when possible (less typing/noise).

Entries found with the following command line:

$ git grep -E '(=|\breturn)\s*scoped_ptr<.*?>([^)]+)' ui/wm

BUG=None
R=sky@chromium.org

Review URL: https://codereview.chromium.org/792603003

Cr-Commit-Position: refs/heads/master@{#308738}
ui/wm/core/nested_accelerator_dispatcher_linux.cc
ui/wm/core/nested_accelerator_dispatcher_win.cc
ui/wm/core/shadow_unittest.cc