Merge 208382 "Lift the limit of renderer processes on Android."

> Lift the limit of renderer processes on Android.
> 
> This patch raises the maximum number of renderers spawned on Android from 3 to
> 9 for general purpose renderers and from 3 to 4 for reserved renderers.
> 
> BUG=241787
> 
> Review URL: https://chromiumcodereview.appspot.com/17589002

TBR=ppi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212030 0039d316-1c4b-4281-b951-d872f2087c98
Merge 210588 "Check for XIDeviceEvent in DeviceUMA"

> Check for XIDeviceEvent in DeviceUMA
> 
> The patch fixes the bug where DeviceUMA picks up XI events which are not
> actually input events (i.e. XIDeviceEvent). This may result in
> out-of-bound memory access on some platforms.
> 
> Contributed by sheckylin@chromium.org
> 
> BUG=256793, 258138
> TEST=Tested on device.
> 
> Change-Id: I036943c13f92f9eb8a3f00f70eaefb8a5c75e012
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210397
> 
> Review URL: https://chromiumcodereview.appspot.com/18496012

TBR=sheckylin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212159 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211442 "[SPDY] Change semantics of SpdyBuffer::GetIOBuffer..."

> [SPDY] Change semantics of SpdyBuffer::GetIOBufferForRemainingData()
> 
> Make its return value be able to outlive the SpdyBuffer.
> 
> This should fix the bug below.
> 
> BUG=249725
> R=rtenneti@chromium.org
> 
> Review URL: https://codereview.chromium.org/18512009

TBR=akalin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212169 0039d316-1c4b-4281-b951-d872f2087c98
Merge 212089 "Fall back to default frame rate when the requested..."

> Fall back to default frame rate when the requested one is not supported for camera capture on Android.
> 
> Video capture can return a different frame rate than the requested. In case that the requested one
> is not supported, video capture can fall back to a default fps.
> 
> BUG=260894
> R=qinmin@chromium.org
> 
> Review URL: https://codereview.chromium.org/19483002

TBR=wjia@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212170 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211818 "Ignore reported display size that is smaller than ..."

> Ignore reported display size that is smaller than min size
>  certain displays reports bogus size, which confuses chrome.
> 
> BUG=260302
> TEST=covered by test
> R=jamescook@chromium.org
> 
> Review URL: https://codereview.chromium.org/18657004

TBR=oshima@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212176 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211706 "Fix feedbackPrivate issues."

> Fix feedbackPrivate issues.
> . Add the feedbackPrivate permission to _api_features.json
> . Fix the case where sending a feedback report without an attached file or screenshot
> 
> R=mpcomplete@chromium.org
> BUG=260024
> TEST=Use a test extension to use the API to send feedback.
> 
> Review URL: https://codereview.chromium.org/18967010

TBR=rkc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212177 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211708 "Add DeviceName to the name returned by the Audio API."

> Add DeviceName to the name returned by the Audio API.
> The Input/OutputInfo objects returned by GetNodes currently contain only the 'node name' of the device that is connected. This is not always the complete name of the device and can make device identification difficult to impossible. Prepend the device name to the node name to allow clear device identification.
> 
> R=mpcomplete@chromium.org
> BUG=260025
> TEST=Check to see that the device name is returned along with the node name in the audio API.
> 
> Review URL: https://codereview.chromium.org/19107008

TBR=rkc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212178 0039d316-1c4b-4281-b951-d872f2087c98
Incrementing VERSION to 29.0.1547.25

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212180 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211932 "Whitelist Netflix MDX plugin for chrome-for-tv"

> Whitelist Netflix MDX plugin for chrome-for-tv
> 
> BUG=258314
> 
> Review URL: https://chromiumcodereview.appspot.com/18031016

TBR=kjyoun@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212181 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211935 "Use the wider Bold/Normal font in LabelButton::Get..."

> Use the wider Bold/Normal font in LabelButton::GetPreferredSize.
> 
> Some text appears wider when rendered normally than when bold.
> Accommodate the widest, as buttons may show bold and shouldn't resize.
> See ui_strings_ja.xtb's "?????" (Cancel) cut off at http://crbug.com/259156
> 
> BUG=259156
> TEST=CrOS --lang=ja doesn't elide Cancel dialog button text, see the bug.
> R=mukai@chromium.org,kochi@chromium.org,sky@chromium.org
> 
> Review URL: https://chromiumcodereview.appspot.com/18513007

TBR=msw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212194 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211630 "Set task into IN_PROCESS before sending to printer."

> Set task into IN_PROCESS before sending to printer.
> 
> BUG=258173
> 
> Review URL: https://chromiumcodereview.appspot.com/18890005

TBR=vitalybuka@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212266 0039d316-1c4b-4281-b951-d872f2087c98
This broke all the builds for M29.  PLEASE WATCH THE BUILDERS AFTER COMMITTING!

Revert 211801 "Merge 211569 "Sync periodic polls always fail bec..."

> Merge 211569 "Sync periodic polls always fail because of expired..."
> 
> > Sync periodic polls always fail because of expired access tokens.
> > 
> > The issue is that poll job runs after few hours of inactivity and 
> > therefore will always fail with auth error because of expired access 
> > token. Once fresh access token is requested poll job is not retried.
> > The change is to remember that poll timer just fired and retry poll job
> > after credentials are updated.
> > 
> > BUG=251307
> > 
> > Review URL: https://chromiumcodereview.appspot.com/18041006
> 
> TBR=pavely@chromium.org
> 
> Review URL: https://codereview.chromium.org/19287011

TBR=tim@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212283 0039d316-1c4b-4281-b951-d872f2087c98
Incrementing VERSION to 29.0.1547.26

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212284 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211803 "Gamepad: Don't use DirectInput on Windows XP."

> Gamepad: Don't use DirectInput on Windows XP.
> 
> DirectInput EnumerateDevices() appears to be problematic on Windows XP,
> and will need some focused debugging to determine the problem.
> 
> BUG=260187
> R=scottmg@chromium.org
> 
> Review URL: https://codereview.chromium.org/19236004

TBR=teravest@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212356 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211815 "cc: Don't DeleteResource while holding write lock."

> cc: Don't DeleteResource while holding write lock.
> 
> When the context is lost and we can't generate a mailbox for a
> resource, we delete that resource. However currently we are already
> optimistically holding a write lock on the resource.
> 
> Instead, only take the write lock once we have generated the mailbox
> so we don't hold it when we delete the resource.
> 
> Tests:
> VideoResourceUpdaterTest.SoftwareFrame
> VideoResourceUpdaterTest.LostContextForSoftwareFrame
> 
> R=piman@chromium.org
> BUG=260361
> 
> Review URL: https://codereview.chromium.org/19272005

TBR=danakj@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212362 0039d316-1c4b-4281-b951-d872f2087c98
Revert 211834 This broke the 29 builds.
"Merge 210704 "Don't count host permission changes..."

> Merge 210704 "Don't count host permission changes for v2 apps as..."
> 
> > Don't count host permission changes for v2 apps as a permission increase.
> > 
> > BUG=255229
> > 
> > Review URL: https://chromiumcodereview.appspot.com/18399007
> 
> TBR=yoz@chromium.org
> 
> Review URL: https://codereview.chromium.org/19410002

TBR=yoz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212363 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211017 "Implement preservesAxisAlignment on gfx::Transform"

> Implement preservesAxisAlignment on gfx::Transform
> 
> In many cases we would like to check if a rect remains axis-aligned after
> having a transform applied to it. This is often done by actually applying the
> transform to the rect and then verifying that it is still rectilinear. This
> entire map operation can be avoided, instead performing a quicker check over 6
> elements of the matrix.
> 
> Additionally, this patch fixes a bug where we were unnecessarily creating
> renderSurfaces.  This bug was diagnosed and solved by wonsick@chromium.org,
> but it was appropriate to do the fix in this patch while it lands.
> 
> BUG=258760
> 
> Review URL: https://chromiumcodereview.appspot.com/11576036

TBR=shawnsingh@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212365 0039d316-1c4b-4281-b951-d872f2087c98
Merge 211966 "Stores JobEventDetails in scoped_refptr."

> Stores JobEventDetails in scoped_refptr.
> 
> BUG=260806
> 
> Review URL: https://chromiumcodereview.appspot.com/19299006

TBR=vitalybuka@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212366 0039d316-1c4b-4281-b951-d872f2087c98
Merge 209286 "Clamp RenderTextWin layout length to 10,000 code p..."

> Clamp RenderTextWin layout length to 10,000 code points.
> 
> Add RenderText::truncate_length_ and setter to clamp layout text length.
> Avoid system limitations and performance degradation on Win/Uniscribe.
> This does not impact underlying text data, only what's shown on screen.
> 
> Truncate text_ to layout_text_ in UpdateLayoutText() and append ellipsis.
> Only reveal obscured characters within the layout text range.
> Ensure the run and glyph limits are actually tried in their loops.
> Add unit tests for reasonable truncation behavior.
> 
> Bail if layout fails, this will leave text un-rendered instead of crashing.
> Clamp run length to avoid exceeding the glyph limit later on.
> Clamp layout indices in conversion, fix run index bounds checks.
> 
> TODO(followup): Truncate text on Linux/Pango as needed.
> TODO(followup): Increase supported text length and run counts.
> TODO(followup): UMA text lengths, run counts, failures, and truncations.
> 
> BUG=235854,236406,248960,131660
> TEST=Paste more than 10k characters on Win to see ellipsis and no crashes. (note that omnibox specific codepaths will cause additional performance degradation in that field). No crash on Windows with Search by Image extension use (tried various sizes 16x16 -> 96x96 -> 1900x1200 -> 3840x2160). Normal text behavior with <10k code points, and no behavior change on ChromeOS/Linux_Aura.
> R=asvitkine@chromium.org,oshima@chromium.org,sky@chromium.org
> 
> Review URL: https://chromiumcodereview.appspot.com/17745005

TBR=msw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212370 0039d316-1c4b-4281-b951-d872f2087c98
Merge 210063 "Fix RenderTextLinux text clamping."

This does not remove the failure suppression like the original patch.
The failure suppression was never added on this branch.

> Fix RenderTextLinux text clamping.
> 
> My http://crrev.com/209286 added text clamping functionality.
> (on Linux, it's only exercised in ui_unittests for now)
> Implement index clamping in Linux layout index conversion.
> 
> Also inline the only (debug) use of layout_text_len_.
> 
> BUG=256436
> TEST=No unaddressable indices are accessed in RenderTextLinuxTest.*
> R=thestig@chromium.org,asvitkine@chromium.org
> 
> Review URL: https://chromiumcodereview.appspot.com/18108003

TBR=msw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@212372 0039d316-1c4b-4281-b951-d872f2087c98