Linux sandbox: move CurrentProcessHasOpenDirectories

Move CurrentProcessHasOpenDirectories() to the Credentials class and rename
it to HasOpenDirectory().
Also add some unittests.

This is a re-land of https://codereview.chromium.org/85403011/.

BUG=312380
R=jorgelo@chromium.org, mmoss@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237390 0039d316-1c4b-4281-b951-d872f2087c98
Roll reference build to r237381 (fix missing libraries on mac)

TBR=tonyg@chromium.org
BUG=323513
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237391 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237392 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 237392
Leave fullscreen mode in an app window when ESC key is pressed.

A few things might need to be discussed like the ability for an app to prevent
the default behaviour and letting the user know about the ability to leave the
fullscreen mode using ESC.

BUG=320487

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

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