Make sure we only redirect in browser processes

BUG=334379

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249965 0039d316-1c4b-4281-b951-d872f2087c98
Refactor ui cocoa test support into a helper target isolated from ui/base/

That way events can reuse it. This will be necessary to move the
remaining events files from ui/base to ui/events.

BUG=299841
TEST=None
R=sadrul@chromium.org,thakis@chromium.org,ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249966 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 249966
Printer registration using CDD.
The code is not enabled yet.

BUG=317027

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

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