cc: Don't schedule top controls animation when there isn't one

If the top controls manager calculates an animation scroll delta of
zero, we schedule another animation attempt for the following frame.
This causes the compositor to run constantly -- for instance -- on pages
where scrolling JavaScript-driven instead of impl-driven.

The fix is to bail out if there is no active top controls animation.

TEST=LayerTreeHostImplWithTopControlsTest.NoIdleAnimation
BUG=309648

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251770 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251770
Added new ReadFileToString API with a max_size argument

The CL creates a new API that takes a max_size argument. When the file size exceed the max_size, the API primes the cache and returns false.

BUG=339417

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251771 0039d316-1c4b-4281-b951-d872f2087c98
CloudPolicyValidator::ValidateCachedKey() generates errors on empty signatures.

Added more CloudPolicyValidator unittests.

BUG=275291

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251772 0039d316-1c4b-4281-b951-d872f2087c98
Reland "Move TextInputController from CppBoundClass to gin::Wrappable."

Also, change the class to use chromium coding style.

BUG=297480, 331301
R=jochen@chromium.org

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

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