Cleanup destruction of ffmpeg objects

The code to free up AVCodecContext and AVFrame objects is replicated in
several places. This cleanup is to common code into a scoped_ptr deleter,
and then use scoped_ptr_malloc for all references to these objects.

BUG=
TEST=media_unittests successful using ASAN and HeapChecker

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225382 0039d316-1c4b-4281-b951-d872f2087c98
Log an error in release builds when NOTREACHED is hit in ChromiumOS builds.  This data can be collected on ChromiumOS when the user consents to it; this should help us collect more data about what shouldn't be happening in prod that happens anyways.

BUG=288014

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225383 0039d316-1c4b-4281-b951-d872f2087c98
bookmarks: Move metrics functions out of bookmark_utils.

- Moves them out of bookmark_utils namespace (into global namespace).
- Make the enum types follow the content convention.

BUG=245392,289619
TEST=None, no functional change.
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225384 0039d316-1c4b-4281-b951-d872f2087c98
Let the Views collected cookies dialog width be clamped.

Override this dialog's GetMinimumSize() value.
Use 0 width and continue using the preferred height.
(lets UpdateWebContentsModalDialogPosition clamp width)

Before pic (clipped dialog): http://crbug.com/295870#c1
After pic (shrunk dialog): http://crbug.com/295870#c5

BUG=295870
TEST=The collected cookie dialog shrinks reasonably with the browser window.
R=rfevang@chromium.org,sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225385 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 225384
Reload wallpaper when display configuration changes.

BUG=285365,239849
R=bshe@chromium.org

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

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