Add UMA to track webstore download interrupts.

BUG=318875

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236281 0039d316-1c4b-4281-b951-d872f2087c98
cc: Fix data race with PrioritizedResourceManager access

Previously, there was a data race where the LayerTreeHost would create
the PrioritizedResourceManager on the main thread (when it was not
blocked) and the compositor thread would attempt to reduce memory or
send memory stats using this PrioritizedResourceManager.

To fix this race, the compositor thread records the
PrioritizedResourceManager during commit.  A number of accessors are
added for layer_tree_host() and contents_texture_manager() to make sure
that they are only being called on the right thread.

The LayerTreeHost is only created once and destroyed once and owns the
PrioritizedResourceManager, so it is "safe" to save this additional
pointer during its lifetime.


BUG=320858

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

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

Undoing revert from r236265.

R=miket@chromium.org, rpaquay@chromium.org
TBR=rch@chromium.org
BUG=155861,148741,140125,169555,171948,281908

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236252

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236283 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 236283
Add more RTL-related methods to ApiCompatibilityUtils.java

This adds methods related to text alignment, padding, and compound
drawables.

BUG=320106
R=kkimlabs@chromium.org, yfriedman@chromium.org

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

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