[cr tool] Adding architecture fixups

BUG=316397

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238959 0039d316-1c4b-4281-b951-d872f2087c98
Move PreferencesMac to components/policy/.

This is a re-land of https://codereview.chromium.org/78603003/

BUG=271392
R=joaodasilva,jochen

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238960 0039d316-1c4b-4281-b951-d872f2087c98
Telemetry: Fix scroll distance calculation.

There is a maximum number of pixels we want to scroll per scroll action. In the
current implementation of the scroll action, we use that number to restrict the
element's scrollHeight, rather than the distance itself. This works fine if we're
at the top of a page (scrollTop = 0) but not otherwise.

This CL fixes this by applying the maximum number of pixels to the distance
itself.

BUG=325185

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238961 0039d316-1c4b-4281-b951-d872f2087c98
Speed up the PolicyPrefIndicatorTest browser test

This CL speeds up the PolicyPrefIndicatorTest test by an order of
magnitude by executing the test cases in chunks of 50 each.

It would be possible to execute all test cases in one go. However, this
takes 17 seconds on a fast Linux machine. On some of the slower bots, it
may exceed the 30 second timeout. Breaking the test cases into chunks
reduces the maximum run time per chunk to 11 seconds on said Linux
machine. If the tests still end up flaking, the chunk size can easily be
adjusted.

With the chosen chunk size, the change in wall clock time needed by the
tests is:

Release: 7:54 minutes -> 14 seconds
Debug: 13:11 minutes -> 42 seconds

BUG=325205
TEST=Updated browser test

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238962 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 163217:163248

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=163218:163248&mode=html
TBR=
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238963 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

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