Fix compilation and ui_unittests with float transforms

This change also cleans up the use of gfx::Transform::get/setDouble
(in favor of get/set) at callsites to prepare for changing SkMScalar
from double to float.

BUG=269817

Review URL: https://chromiumcodereview.appspot.com/23811009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224725 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 224725
Pepper: Check WebFrame not NULL in NPObjectToPPVar

It appears that WebFrame is sometimes NULL inside content::NPObjectToPPVar. We
should fail gracefully when this happens.

BUG=275791

Review URL: https://chromiumcodereview.appspot.com/24049003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224726 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 224726
chrome: Check idle state for Ozone platform

X11 screen savers are special ones but we hope that most of the Ozone
implementations won't need these special treatment as in here. Therefore just
return false.

BUG=295089

Review URL: https://chromiumcodereview.appspot.com/24114007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224727 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 224727
Identity API: discard cached tokens within 20 minutes of expiration

Some apps find it inconvenient or impossible to do an async token
fetch at the exact moment that they need a token. For example, if they
are attaching tokens to requests through a webrequest API
handler. These apps need to be able to periodically update a token
that they cache themselves.

This change makes the Identity cache discard tokens that are within 20
minutes of expiration. Apps that need to can poll for tokens on a
relatively long timer (e.g. every 15 minutes), and still be relatively
sure that their tokens will not expire.

BUG=266963
R=fgorski@chromium.org

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

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