Use a correct scale factor for Gaia avatar images

BUG=341607
TEST=Make sure that you have the --new-profile-management flag turned on, at least two profiles, and at least one of them signed in. Go to chrome://settings. All the users should display an avatar image in the Users section, including the signed in users, which will have their Gaia photo.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255367 0039d316-1c4b-4281-b951-d872f2087c98
Clean up WindowEventDispatcher some more.

. Eliminate the implementation of LayerAnimationObserver. It seems no one expects WED to be a LAO anymore.
. Remove WindowTreeHostDelegate. This involves moving some of the functions to WTH, removing some completely, and moving the remainder to the WED public API. A little icky for now, but I plan to take a pass on cleaning up WED's public API once I get it pared down.
. window_tree_host_x11_unittest provided an implementation of WTHD that was not WED. This is not a valid situation now since various functions in WTH now call directly through to WED. Replaced this with a simple EventHandler to test that events are being dispatched.

R=sky@chromium.org
http://crbug.com/308843

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255368 0039d316-1c4b-4281-b951-d872f2087c98
Add UI hook for distilling web pages for test shell (relanding)

This adds the Java hooks needed and a menu option to distill the current
web page in the test shell.

Original CL: https://codereview.chromium.org/185113002/

BUG=319881

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255369 0039d316-1c4b-4281-b951-d872f2087c98
Android: support http referrers for context menu navigations.

This patch provides the support needed for setting http referrers on URL
loads triggered from the context menu:

- adds Referrer.java holder corresponding to the native
  content::Referrer
- ContextMenuParams.java now holds a Referrer field set (along with
  sanitization) by ContextMenuHelper
- ContextMenuItemDelegate methods that trigger new navigations accept a
  Referrer parameter (save for OpenInNewIncognitoTab, as we drop the
  referrer in this case)
- LoadUrlParams.java also gets a Referrer field, so that embedders can
  set it in their ContextMenuItemDelegate implementations

BUG=340295

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255370 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 255369
When the browser actions container's animation ended, we should set 'suppress_chevron_' to false then re-layout it.

If we keep 'suppress_chevron_' being true and notify to re-layout the toolbar, then finish the animation, because there is no chance to layout toolbar again, some browser action views would not be showed, neither chevron. That makes people puzzled.

TBR=sky
R=finnur@chromium.org
BUG=328307

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255371 0039d316-1c4b-4281-b951-d872f2087c98
Revert 255262 "Migrate chrome.bluetooth API backend to use devic..."

Reverted due to memory leaks.

> Migrate chrome.bluetooth API backend to use device::BluetoothDiscoverySession.
> 
> Modified chrome.bluetooth API code to use the new discovery session API for
> device discovery.
> 
> BUG=346982
> TEST=1. unit_tests, browser_tests
>      2. Use multiple running extension instances with the bluetooth permission and check for the following behavior:
>         - Only one session per extension. Calling chrome.bluetooth.stopDiscovery from one running app should fail if that app never called chrome.bluetooth.startDiscovery.
>         - An app's discovery sessions should get cleaned up if that app crashes or unloads.
>         - Use bt_console and run "power off". This should cause all discovery sessions that have been assigned to apps to get marked as inactive. Verify by requesting a new discovery session from apps, which should succeed.
> 
> Review URL: https://codereview.chromium.org/179123008

TBR=armansito@chromium.org
BUG=349942

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

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