[Telemetry] Add unit test for browser.foreground_tab

Followup to https://codereview.chromium.org/161473002

BUG=343168

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251711 0039d316-1c4b-4281-b951-d872f2087c98
This CL unsnaps a side snapped window if a user resizes a side snapped window such that the window no longer has valid side snapped bounds.
e.g. Resizing a snapped window to make it wider keeps the window snapped
     Resizing a snapped window such that it no longer takes up the entire workspace unsnaps the window

This CL also:
- Cleans up WorkspaceWindowResizer::UpdateSnapPhantomWindow()
- Avoids setting the "bounds changed by user" flag if the user clicks on the window header

BUG=341767, 338168
TEST=DockedWindowResizerTest.*
     WorkspaceWindowResizerTest.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251712 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251712
Remove --disable-device-motion and --disable-device-orientation flags from chrome.

The Device Motion/Orientation feature has been shipped
in stable for a while. These flags can be safely removed
now as part of a more general clean-up effort
(see crbug.com/344319).

BUG=344319

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251713 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Move TextInputController from CppBoundClass to gin::Wrappable. (https://codereview.chromium.org/144013010/)

Reason for revert:
Broke LayoutTests/editing/selection/move-left-right.html, which uses TextInputController.


Original issue's description:
> Move TextInputController from CppBoundClass to gin::Wrappable.
> 
> Also, change the class to use chromium coding style.
> 
> BUG=297480, 331301
> R=jochen@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251692

TBR=jochen@chromium.org,tfarina@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=297480, 331301

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

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