libaddressinput: use scoped_ptr instead of bare pointers
when transferring ownership

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241367 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 241367
cc: Clear delegated layer's current resources when deleting child

This fixes a crash in ResourceProvider::DeclareUsedResourcesFromChild()
when we set invalid frame and try to reuse the last frame's
resources in DelegatedRendererLayerImpl::SetFrameData(), but those
were actually lost.

BUG=270179
R=danakj@chromium.org, piman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241368 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 241368