Pepper: Move NexeDidCrash() to NexeLoadManager.

This change pulls more code out of ppapi/native_client to
compnents/nacl/renderer.

GetReadyTime() is removed from PPB_NaCl_Private here to simplify time
management. I don't want to mix time math from Chrome and NaCl, so plugin.cc
uses its own ready_time_ for some operations again, and SetReadyTime() stashes
the current value of base::Time::Now in NexeLoadManager.

BUG=239656

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261978 0039d316-1c4b-4281-b951-d872f2087c98
Flush texture id for the mirrored content after it is created.

BUG=358345

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261979 0039d316-1c4b-4281-b951-d872f2087c98
Update several new history related callbacks to use WebLocalFrame.

BUG=346764

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261980 0039d316-1c4b-4281-b951-d872f2087c98
telemetry: add additional discrepancy test cases

Add two additional test cases with collocated samples.

R=tonyg@chromium.org
BUG=357363

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261981 0039d316-1c4b-4281-b951-d872f2087c98
Fix index out of bound crash in sessions.getDevices again.

Use the filtered tabs instead of the raw tabs to avoid
getting current navigation from a zero size array.

R=kalman@chromium.org
BUG=348395

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261984 0039d316-1c4b-4281-b951-d872f2087c98
Cause:
The bump scrolling issue is a regression of the change below
https://codereview.chromium.org/134163005
In the change, the plugin is resized using plugin.style.height and the bump scrolling code is using plugin.height to determine its min scrolling position.  As a result, the element is often reported as non-scrollable.

The fix is to use clientHeight to determine the size of the plugin instead.

To improve the reliability of the display of the scroll-bars.  We subscribed to the full-screen event and adjust the visibility scroll-bar accordingly.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261985 0039d316-1c4b-4281-b951-d872f2087c98
ui/gfx: Add Android support for gfx_unittests target.

By using gtest_target_type we can specialize gfx_unittests for android
and thus get it running on Android.

BUG=331829,299841
TEST=gfx_unittests_apk
R=danakj@chromium.org,bulach@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261986 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 170894:170907

TBR=
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261987 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261988 0039d316-1c4b-4281-b951-d872f2087c98
Add extensions_unittests target for unit tests in //extensions.

This introduces a minimal test target, "extensions_unittests", for
building unit tests in //extensions. It starts with files from
extensions/common first, so it is easier to get the dependencies right.

This also list the all the entries that would not introduce more
"chrome" dependencies on any extensions targets.

When running this target you will see that it does not PASS everything
yet:

8 tests failed:
    ExtensionURLPatternTest.ConvertToExplicitSchemes
    ExtensionURLPatternTest.GetAsString
    ExtensionURLPatternTest.Match13
    ExtensionURLPatternTest.Match19
    ExtensionURLPatternTest.Match9
    FileUtilTest.ExtensionResourceURLToFilePath
    FileUtilTest.ExtensionURLToRelativeFilePath
9 tests crashed:
    APIPermissionSetTest.CreateDifference
    APIPermissionSetTest.CreateIntersection
    APIPermissionSetTest.CreateUnion
    APIPermissionSetTest.General
    APIPermissionSetTest.IPC
    APIPermissionSetTest.ImplicitPermissions
    ManifestHandlerTest.DependentHandlers
    ManifestHandlerTest.FailingHandlers
    ManifestHandlerTest.Validate

Since we are not running this target on the bots yet, it should be fine,
and we can iterate from this point and fix these failures and crashes later.

BUG=348066
TEST=extensions_unittests
R=yoz@chromium.org,jamescook@chromium.org,jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261989 0039d316-1c4b-4281-b951-d872f2087c98
aura: Remove old GL paths from RenderWidgetHostViewAura.

Frames from the renderer are either legacy software,
software compositing, or ubercomp. Remove the old GL composited
paths that are no longer in use.

For layout tests, put them into composited mailbox mode, and
instead of sending the frame to the browser at all, just put the
frame in a post task to ack back directly to the renderer.

Rebase and fix-up to prevent overloading the GPU process from
https://codereview.chromium.org/131443007/

R=danakj
BUG=332998

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261990 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Use a longer partial filename so that we don't pull in false filename matches

BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261991 0039d316-1c4b-4281-b951-d872f2087c98
Add Brett as the OWNER of checkdeps code.

He was the author of this tool and with Joi leaving Chromium he seems to
be a good candidate. Others can be added later if needed.

This is good for people changing this tool, so they know now who to ask for
reviews.

TBR=brettw@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261992 0039d316-1c4b-4281-b951-d872f2087c98
Add gn watchlist and add myself.

This means I will be copied in patches that make changes to tools/gn.

NOTRY=true
TEST=~/depot_tools/watchlists.py tools/gn
R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261993 0039d316-1c4b-4281-b951-d872f2087c98
content: Update KeyCodeMapping code to chromium's coding style.

- Put it in content namespace.
- clang-format it.
- KeyCodeMapping.* -> key_code_mapping.*

BUG=331299
TEST=content_unittests, layout tests
TBR=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261994 0039d316-1c4b-4281-b951-d872f2087c98
Do not do UI from the renderer.

This makes an IPC for that.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261995 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Abstract out write/writev vs send/sendmsg (for Unix domain sockets).

I thought I had fixed our SIGPIPE suppression, but I was wrong (missed the
write() case). So I guess I should do the right thing.

R=darin@chromium.org
BUG=356195

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261996 0039d316-1c4b-4281-b951-d872f2087c98
Fix Win64 build breakage from r261748

R=penghuang@chromium.org, yzshen@chromium.org
TBR=penghuang@chromium.org, yzshen@chromium.org
NOTRY=true
NOTREECHECKS=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262001 0039d316-1c4b-4281-b951-d872f2087c98
Revert 261966 "make SetReceiveBufferSize and SetSendBufferSize r..."

Appears to have broken the following gcm_unit_tests on Mac:

DeviceCredentials
AckOnLogin
AckWhenLimitReachedWithHeartbeat
ExpiredTTLOnRestart
InitializeExisting
SendMessageRMQAckOnReconnect
SendMessageRMQOnRestart
SendMessageRMQPartialAckOnReconnect
SendMessageRMQWithStreamAck

http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%284%29/builds/39860


> make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools)
> 
> TBR=sergeyu,yzshen
> R=wtc
> BUG=355222
> 
> Review URL: https://codereview.chromium.org/217573002

TBR=jar@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262002 0039d316-1c4b-4281-b951-d872f2087c98
Updating trunk VERSION from 1928.0 to 1929.0

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262004 0039d316-1c4b-4281-b951-d872f2087c98