Fix platform guards for UnregisterClientOnUIThread.

UnregisterClientOnUIThread is called when platform is ChromeOS.
However, UnregisterClientOnUIThread is defined only when platform
is ChromeOS and using X11. This CL removes the X11 so 
that  UnregisterClientOnUIThread is defined on other platforms i.e Ozone
while using ChromeOS.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227708 0039d316-1c4b-4281-b951-d872f2087c98
Multiple memory leak fixes in unittest.

- Simplify Close() to always tear down the underlying socket
- Always close the TestCastSocket in TearDown()
- Keep track of whether the mock socket was actually passed to CastSocket and destroy it if necessary
- Fix virtual dtor

TESTED=$ASAN_OPTIONS="detect_leaks=1 strict_memcmp=0" out/{Debug,Release}/unit_tests --gtest_filter="CastSocket*"

BUG=304970

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227709 0039d316-1c4b-4281-b951-d872f2087c98
DevTools: display 'Pending authentication' message upon raw usb debugging.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227710 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 227709
CC: Cap the size of the SOON_BIN.

ALLOW_PREPAINT_ONLY is used to reduce memory usage, but
currently the SOON_BIN can still grow to an unbounded size
because we will schedule rasters for the entire SOON_BIN,
even though our paint rate is what truly determines if we
see checkerboard.

Minus raster tasks spikes seen in http://crbug.com/303397,
this keeps memory usage well below the limit when using
ALLOW_PREPAINT_ONLY.

BUG=273127

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

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