BrowserPlugin: Implemented BrowserPluginGuestManager::ForEachGuest

Use this pattern to replace existing methods in BrowserPluginGuestManager. This CL is just a refactor, there is no change in functionality.

BUG=330843

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243893 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 243893
Move DriveAppRegistry from c/b/chromeos/drive to c/b/drive.

for using the class in other platforms outside Chrome OS.

BUG=312566

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243894 0039d316-1c4b-4281-b951-d872f2087c98
Fix support for 16 and 8 bit depth X11 displays in software compositor.

gfx::PutARGBImage already has code for doing the conversion, so use that.

BUG=332026

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

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