Improve prerender handling of NavigateParams.

There aren't many uses of extra_headers and use_post, but we shouldn't trigger
prerenders in those cases. Also update params->target_contents after swap and
follow through with chrome::Navigate cleanup code, as SwapInInstantNTP does.
Modify tests to assert the correct WebContents was returned out of
Browser::OpenURL.

BUG=none
TEST=PrerenderBrowserTest.PrerenderExtraHeadersNoSwap
     PrerenderBrowserTest.PrerenderBrowserInitiatedPostNoSwap

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229930 0039d316-1c4b-4281-b951-d872f2087c98
Relands Android perf tests: kill adbd on the device after running a test.

Third retry on crrev.com/226762.
Adds "wait-for-device".
There's some data indicating that adbd on the device sometimes
spontaneously restores its connection.
After running a test, let's kill adbd and wait for bit.

This is a speculative change to try to make the bots healthier.

BUG=268450

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229931 0039d316-1c4b-4281-b951-d872f2087c98
Use adapter type rather than adapter name in chrome://diagnostics.

Before, chrome://diagnostics assumes that an interface like eth0 will be
an specific type (ie. ethernet). This may not be the case, so we explicitly
check the type of the interface. We use DebugDaemonClient::GetNetworkStatus
instead of DaebugDaemonClient::GetNetworkInterfaces so we can read the type.

BUG=239364
TEST=manual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229933 0039d316-1c4b-4281-b951-d872f2087c98
DevTools: Make Android tabs unloaded from memory accessible via remote debugging protocol (3/3)

Step 3 out of 3:
- Implemented GetTitle, GetURL and RestoreIfNeeded in TabAndroid.h/.cc and TabBase.java
- Removed tab id parameter from TabBase#nativeInitWebContents
- Introduced a new DevToolsTarget implementation for an unloaded tab (relying on the new TabAndroid methods)
- Changed DevToolsServerDelegate to enumerate all tabs (including unloaded)
- Cleaned up after Step 1: 
  -- Made the new methods in TabModel pure
  -- Removed the bridge method TabAndroid::InitWebContents with the old signature.
  -- Removed TabAndroid::android_id()

BUG=272174

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229934 0039d316-1c4b-4281-b951-d872f2087c98
DevTools: detect offline (not-authed) devices discovered over ADB.

BUG=305923

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

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

This code was part of the feature that allowed developers to hide the top
controls (e.g. the url bar) by calling scrollTo. This feature was never
launched and never will be. See bug for further details.

BUG=295887

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229937 0039d316-1c4b-4281-b951-d872f2087c98
cc: Resources in parent compositor should not be considered wasted.

When a backing is released from its owner, but is in the parent
compositor, it is still in use and should not be considered wasted
since it can not be recycled. When the resource is returned from the
parent compositor it will be recycled or considered wasted.

Tests:
PrioritizedResourceTest.ReduceWastedMemory
PrioritizedResourceTest.InUseNotWastedMemory

R=ccameron, jbauman
BUG=292971

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229938 0039d316-1c4b-4281-b951-d872f2087c98
Various fixes and UI improvements.

* Added executable icon to list view rows.
* Use the actual module executable name instead of argv[0] (fixes issue
  when running not through the shortcut)
* Fixes some button anchoring behavior.
* Moved the command to the Debug menu instead of Tools menu.

BUG=305760

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229941 0039d316-1c4b-4281-b951-d872f2087c98
This patch addresses two issues:

1) Some functions were using the wrong signatures, which 
only happened to work by coincidence since the wrong 
signatures had the same number of arguments as the right 
signatures.

2) Don't use imported functions from system libraries in 
patched functions until after TargetServices::InitCalled() 
has been called, which guarantees that our IAT has been 
initialized.

BUG=305815

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229943 0039d316-1c4b-4281-b951-d872f2087c98
Add "Inspect devices" item to Tools menu

BUG=304708

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229944 0039d316-1c4b-4281-b951-d872f2087c98
The inactive rendering flag on Windows AURA should be turned off in the WM_NCACTIVATE handler when the window is activated.

Currently this is turned off when the aura Window is deactivated, which occurs when a top level window like a bubble is
displayed. This causes the browser frame's caption to be displayed as inactive when a bubble is displayed which is not
correct.

Removed the NativeWidgetAuraWindowObserver class as it does not do anything useful with the inactive rendering flag setting
code taken out. I also removed the SetInactiveRenderingDisabled method from the NativeWidgetPrivate interface as it does
not do anything useful.

The inactive rendering flag gets reset correctly in the WM_ACTIVATEAPP and WM_NCACTIVATE messages on Windows.

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

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

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

Add Peter, remove old team members.

Add some more directories to watch.

BUG=none
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229947 0039d316-1c4b-4281-b951-d872f2087c98
Disable devtools sanity tests to unblock the Blink roll

These tests were apparently broken by changes to the DOM structure in
https://src.chromium.org/viewvc/blink?revision=160081&view=revision.

R=alecflett@chromium.org
TBR=pfeldman@chromium.org
BUG=309822

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229948 0039d316-1c4b-4281-b951-d872f2087c98
Fix comment on kNoFirstRun.

kNoFirstRun does NOT create the First Run sentinel (kCancelFistRun does); this comment was wrong.

Looks like I messed this up in the last patch set of http://crrev.com/216460...

NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229949 0039d316-1c4b-4281-b951-d872f2087c98
Move evdev events support into EventFactoryDelegateEvdev

And introduce a gyp variable use_ozone_evdev to allow this feature to be
removed from the build. Additionally, the --ozone-events flag is introduced
to select an EventFactoryDelegateOzone implementation to use.

If an embedder or out-of-tree EventFactoryDelegateOzone implementation
calls SetEventFactoryDelegateOzone during initialization, the flag has no
effect.

BUG=none
TEST=Build & run content_shell, ui_unittests with use_ozone=1

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229950 0039d316-1c4b-4281-b951-d872f2087c98
Add flag for inline signin flows

BUG=309119

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229951 0039d316-1c4b-4281-b951-d872f2087c98
Fix leak introduced by CL 27548004

This CL fixes by spinning a task runner to flush out any remaining
tasks.

BUG=287802
TEST=Manual
R=jyasskin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229952 0039d316-1c4b-4281-b951-d872f2087c98
Ensure callbacks are reset when disconnecting a TCPSocket/UDPSocket.

BUG=251977

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229953 0039d316-1c4b-4281-b951-d872f2087c98
Rename BeginFrame to BeginMainFrame and BeginImplFrame in cc::Scheduler.

Second patch in a series to rename BeginFrame. This patch focuses on
cc::Scheduler.

In the scheduler, the term 'BeginFrame' is used for both the main thread and the
impl thread. This can cause confusion if it's not obvious which one is being
refered to. To clarify this, we rename BeginFrame to BeginMainFrame and
BeginImplFrame, respectively.

BUG=261765

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229954 0039d316-1c4b-4281-b951-d872f2087c98
Add comment about "Confidence in Bisection Results" and "Author" output. The perf dashboard looks for these strings, so warn anybody about changing them.

BUG=
NOTRY=true

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

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