Revert 231127 "Revert 230852 "Revert 230545 "Disable image trans..."

BUG=311673, 304369

> Revert 230852 "Revert 230545 "Disable image transport surface on..."
> 
> > Revert 230545 "Disable image transport surface on all windows ma..."
> > 
> > Because the patch of r230660 got reverted.
> > 
> > > Disable image transport surface on all windows machines.
> > > 
> > > We want to try using the direct presentation path everywhere, so blacklist texture sharing on all machines. If this works, we can delete the image transport surface code later.
> > > We've made the image transport surface work even with the sandbox at full strength, so remove the code that reduces the GPU sandbox in this case.
> > > 
> > > BUG=304369
> > > R=kbr@chromium.org
> > > 
> > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227583
> > > 
> > > Review URL: https://codereview.chromium.org/26073002
> > 
> > TBR=jbauman@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/40723004
> 
> TBR=cpu@chromium.org
> 
> Review URL: https://codereview.chromium.org/45813002

TBR=jbauman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231443 0039d316-1c4b-4281-b951-d872f2087c98
GTTF: increase new test launcher timeout to one compatible with run_test_cases.py

Example of a slow test is ExtensionSettingsFrontendTest.QuotaLimitsEnforcedCorrectlyForSyncAndLocal
which takes over 50 seconds on Windows debug bots.

BUG=236893
R=rmsousa@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231447 0039d316-1c4b-4281-b951-d872f2087c98
Send GesturePinchBegin only when finger has moved far enough

Currently we transit into GS_PINCH and send GesturePinchBegin when:
1) 2 fingers down and are far apart (without any movement)
2) 2 fingers down and close to each other, then one finger moves significantly
   (even when the touch move is prevented default)

GesturePinchBegin will always send a GestureScrollBegin, which will
cause RWH to send all the following touch events back as not processed.

So entering GS_PINCH state too early (i.e. 2 fingers down, but before
seeing any real finger movement for pinch gesture) will prevent the
following touch events to get their actual disposition from renderer,
i.e. they can be prevented default/processed.
 
This CL adds another gesture state GS_PENDING_PINCH corresponding to
the state of 2 fingers down far apart but before any finger moves
significantly.

BUG=306240
TEST=Follow the test at 306240, make sure no pinch-to-zoom when touch move
     are prevented default.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231448 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] nacl_io: add support for SO_KEEPALIVE and FD_CLOEXEC

These are useful for the civitweb port in naclports.

R=binji@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231450 0039d316-1c4b-4281-b951-d872f2087c98
Fix PrerenderBrowserTestWithExtensions.WebNavigation test.

It got broken after it was disabled. Fix it and bring its disabled configs
in line with other extension browser_test flakes. This is on the theory
that this is the only source of the flake. If the test still fails, it can
be disabled again.

Also remove a chrome.tabs.update call in
PrerenderBrowserTestWithExtensions.TabsApi that wasn't doing anything.

BUG=177163,249179
TEST=PrerenderBrowserTestWithExtensions.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231451 0039d316-1c4b-4281-b951-d872f2087c98
Makes tooltips work better with capture

When capture is held all mouse events go to the captured window, even
if another window happens to be under the mouse. This patch makes it
so that when capture is held TooltipController looks for the window
under the mouse and potentially queries it for the tooltip.

If the window under the mouse differs from the captured window it is
queried for the tooltip if the capture window and the window under the
mouse have the same value for the window property
TooltipManager::kGroupingPropertyKey. The only place that sets this
value is menus. When a menu is shown only the first menu has
capture. By picking up the tooltip from the other menus tooltips
show correctly for nested menus.

I also had to update TooltipManagerAura to similarly update the
tooltip on the associated window when capture is held.

BUG=310604 5246 311291
TEST=see bug
R=varunjain@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231452 0039d316-1c4b-4281-b951-d872f2087c98
Move retry logic to PrivetURLFetcher

Move the logic for retrying on transient errors to PrivetURLFetcher, so that
local printing can benefit from it.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231453 0039d316-1c4b-4281-b951-d872f2087c98
VIRTUAL KEYBOARD mode for second display
 This is a place holder so that bshe can add VK to this root window.

BUG=310325
R=bshe@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231454 0039d316-1c4b-4281-b951-d872f2087c98
Cleanup: Clamp down DEPS in chrome/renderer; remove obsolete entries.

R=brettw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231455 0039d316-1c4b-4281-b951-d872f2087c98
Remove ninja special cases for iOS build configurations.

Gyp now sets -iphoneos architecture, so armv7 switching isn't required in
common.gypi.  This CL also gets rid of ONLY_ACTIVE_ARCH, which requires full
rebuilds when switching devices between armv7, armv7s and arm64 devices.

Also remove the iOS5 arclite link step, which isn't needed in iOS6+.
 
BUG=312300
Test=ios_rel_device builds

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231456 0039d316-1c4b-4281-b951-d872f2087c98
Enable QUIC 11, and disable QUIC 10.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231457 0039d316-1c4b-4281-b951-d872f2087c98
Re-attempt to fix the calendar widget.  Previous attempts 
to land this patch have failed with memory corruption 
errors on CrOS which only appear on the waterfall.  sky@ 
has pointed out a potential null pointer dereference, so 
this is an attempt to see if adding a null check fixes the 
issue.

Unfortunately we know of no way to test this without 
actually committing the patch (since the issue does not 
seem to reproduce on trybots), so sheriffs take note that 
if this CL shows up on the blame list for a buildbot 
failure in CrOS content tests, please revert it.

BUG=176221

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231458 0039d316-1c4b-4281-b951-d872f2087c98
Docserver: Rename ExampleZipper to DirectoryZipper and give it the ability to
zip arbitrary directories, not just examples. Make the tests meaningful.


BUG=293678
R=jyasskin@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231459 0039d316-1c4b-4281-b951-d872f2087c98
Added Obj-C++ protocol for VideoCaptureDeviceMac and made QTKit
implementation derive from it.

This cl adds one file
media/video/capture/mac/video_capture_device_mac_protocol.h with an Obj-C++
protocol defining the operations needed by VideoCaptureDeviceMac to manipulate
VideoCaptureDeviceQTKit, the only implementation. In subsequent CL's, an
AVFoundation implementation will be added to the source.

This CL is part of a larger exercise to add support for Video Capture in
Mac > 10.6 using AVFoundation.

BUG=288562

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231460 0039d316-1c4b-4281-b951-d872f2087c98
[Clean up] Remove Browser::UpdateSearchState() and inline its definition into Browser::ActiveTabChanged().

Browser::ActiveTabChanged() is the only caller of UpdateSearchState().

Follow up of crrev.com/27137003.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231461 0039d316-1c4b-4281-b951-d872f2087c98
Fixes modifier handling for repeat keys.


BUG=312344

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231462 0039d316-1c4b-4281-b951-d872f2087c98
[Sync] Fix handling of migrated preferences

Ensure that association properly marks the correct preference as being synced,
and that migration keeps track of which preferences are newly synced.

BUG=311679

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231463 0039d316-1c4b-4281-b951-d872f2087c98
Revert 231456 "Remove ninja special cases for iOS build configur..."

This broke the "iOS Device" bot.

> Remove ninja special cases for iOS build configurations.
> 
> Gyp now sets -iphoneos architecture, so armv7 switching isn't required in
> common.gypi.  This CL also gets rid of ONLY_ACTIVE_ARCH, which requires full
> rebuilds when switching devices between armv7, armv7s and arm64 devices.
> 
> Also remove the iOS5 arclite link step, which isn't needed in iOS6+.
>  
> BUG=312300
> Test=ios_rel_device builds
> 
> Review URL: https://codereview.chromium.org/25535004

TBR=justincohen@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231466 0039d316-1c4b-4281-b951-d872f2087c98
Fix a crash reported in ASH reported in the Chrome SyzyASAN canary.

The crash occurs while executing the DisplayManager::CreateMirrorWindowIfAny task because the DisplayManager
instance was destroyed.

I was able to reproduce this by putting executing this task with a small delay and then closing ASH.

Fix is to use a WeakPtrFactory for the DisplayManager::CreateMirrorWindowIfAny task

Fixes bug https://code.google.com/p/chromium/issues/detail?id=309767

BUG=309767
R=sky@chromium.org, sky

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231467 0039d316-1c4b-4281-b951-d872f2087c98
rAc: show AmEx-specific error message for merchants where Wallet doesn't
support AmEx.

BUG=252938

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

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