Implement eliding/truncating at end in RenderText

The eliding is determined using binary search similar to the ElideText
in ui/gfx/text_elider.cc.

The mixed LTR-RTL handling for ellipsis is done using LTR/RTL markers.
There is no other way of rendering the ellipsis with the directionality
of preceding strong-directional characters. Previous scheme worked
because it rendered LTR and RTL sub-strings as different RenderText
instances.

Added helper method to be able to determine directionality of the
trailing text.

Made StringSlicer used by text_elider.cc public to be shared by RenderText.

BUG=327833
TEST=ui_unittests,base_unittests
R=msw@chromium.org
TBR=jshin@chromium.org,pkasting@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240572 0039d316-1c4b-4281-b951-d872f2087c98
[SyncFS] Use DeleteResource instead of TrashResource in SyncFS

BUG=240165
R=kinuko@chromium.org, nhiroki@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240573 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240573
Record GWS-Chrome joint experiment ID in PLT UMA.

We will use this to measure the impact of <link rel=prefetch> and <link rel=dns-prefetch>. In GWS side, we embed these <link> elements in a search results page. In UMA side, we track PLT metrics of pages which are accelerated by these prefetch hints.

BUG=328172
R=pmeenan@chromium.org

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

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