Unify browser process type checks in Chrome ELF.
Use both IsSandboxed and command line flag.

BUG=329023
TEST=chrome_elf_unittests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254308 0039d316-1c4b-4281-b951-d872f2087c98
Media Galleries API Metadata: Fix bugs in utility process cleanup.

Currently, getMetadata calls don't correctly clean up the utility process, and a utility process gets left around for each call.

This patch fixes those issues.

TBR=thestig@chromium.org
BUG=318450

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

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