Introduce a separate gyp file for content shell and tests

This will make it possible to depend on components from content shell

BUG=247431
R=jam@chromium.org
TBR=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229620 0039d316-1c4b-4281-b951-d872f2087c98
Add SyncSocket::ReceiveWithTimeout() and SyncSocket unit tests.

Method does as advertised using select() on POSIX and the existing
CancelableFileOperation() wrapper on Windows since there is no
select() equivalent on XP.

It was also high time we had some unit tests for this class, so I
added a small set which exercise almost the full functionality.

BUG=289124
TEST=base_unittests!

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229621 0039d316-1c4b-4281-b951-d872f2087c98
Report errors from ChromiumEnv::GetChildren in Posix.

Win forthcoming.

BUG=308101

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229622 0039d316-1c4b-4281-b951-d872f2087c98
Telemetry: add multitab tests framework.

Adds to Telemetry the ability to map pages to tabs instead of having
all pages open sequentially in a single tab.

BUG=chromium:249906
TEST=ran the modified memory_multi_tab test

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229623 0039d316-1c4b-4281-b951-d872f2087c98
Move VideoDecoderVp8 to VideoDecoderVpx base that will support VP8/9.

BUG=260879

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229624 0039d316-1c4b-4281-b951-d872f2087c98
Fix two nits with mojo::shell::app_container

app_container.cc should include its primary header first (to ensure the header
includes all of its dependencies) and the WeakPtrFactory should be the last
member in the class (because weak_ptr.h says so).

R=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229625 0039d316-1c4b-4281-b951-d872f2087c98
Ensure terminated apps can be uninstalled from the app launcher and NTP

Problem:
After an app has crashed, the uninstall context menu item in the app
launcher and NTP are enabled, but do nothing when invoked.

Diagnosis:
When an app crashes, ExtensionService moves the Extension object into
its list of terminated extensions. The launcher and NTP used
ExtensionService::GetExtensionById() to retrieve the Extension, which
returned null as it excludes terminated extensions.

Fix:
Call ExtensionService::GetInstalledExtension(), which includes
terminated extensions.

BUG=302420
TEST=See bug for steps to reproduce issue. Test all OSes.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229626 0039d316-1c4b-4281-b951-d872f2087c98
IndexedDB: Ensure that closed connections are not used

Once a database connection object is closed it doesn't
need to hold a database reference. This can be used to
detect the case where a request arrives from a renderer
after a connection is forcibly closed by the back end,
and drop the request.

In most cases the request would be associated with a
transaction that would have been aborted/removed from
the database's list and hence the request would just
be dropped. The CreateTransaction() and Close() requests
aren't, so they need this check. In the other cases 
this will just exit earlier and let the database object
be released.

BUG=308699

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229627 0039d316-1c4b-4281-b951-d872f2087c98
[Hotword] Adding the HotwordService to manager per profile prefs and state.

BUG=289023

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229628 0039d316-1c4b-4281-b951-d872f2087c98
[Ozone] Unit tests for SoftwareSurfaceFactoryOzone

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229629 0039d316-1c4b-4281-b951-d872f2087c98
roll gyp 1758:1763

1759: Remove generator_handles_variants more.
1760: xcode: Remove unused function.
1761: Remove deprecated --msvs-version flag which is no longer used.
1762: ninja: Write gypcmd files into the output directory instead of the tree.
1763: Build fix after r1782

(Doesn't fully fix the rebuilds on the bots yet, because several nacl gypcmd files compete for the same filename and overwrite each other, so the "don't write if contents equal" mtime trick isn't effective. Will look into that next.)

BUG=297186
TBR=scottmg

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229631 0039d316-1c4b-4281-b951-d872f2087c98
Set is_test_apk=1 for content_browsertests_apk.

Without this set, you won't get the android_tools target
built when building only content_browsertests_apk, which is needed
in order to run the test on a device.

In WebRTC, I'm adding buildbots using that target for building and
running content_browsertests in https://codereview.chromium.org/26738003/

I would like to avoid having to specify a separate target in
android_all.gyp just to get this build running, and I think all targets
should build their necessary dependencies.

TEST=local building of content_browsertests_apk + verifying the
host_forwarder was built.
BUG=305749

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229632 0039d316-1c4b-4281-b951-d872f2087c98
Remove the migration code for old font preferences.

The migration was introduced in May 2012 in crrev.com/137835 and
crrev.com/138219. We don't need to support migrating these old prefs
anymore; if someone has an old profile with them they will just be
ignored.

BUG=127372

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229633 0039d316-1c4b-4281-b951-d872f2087c98
GYP variable v8_optimized_debug should be overridable by GYP_DEFINES

This re-lands r226772. The issue that caused the revert has been fixed on the V8 side.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229634 0039d316-1c4b-4281-b951-d872f2087c98
Fix Win8 skin for the new avatar button.

Screenshot: https://docs.google.com/file/d/0B1B1Up4p2NRMUTQ3ZzM1TlMwZWM/edit?usp=sharing

BUG=287883

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229635 0039d316-1c4b-4281-b951-d872f2087c98
[Files.app] Put a temporary action item to the file contextmenu until task is loaded

Tasks are loaded asynchronously when the context menu is requested to show. The size of menu might be changed after the menu calculates the geometry and the position so the bottom part of the menu might be hidden because the menu expanded.

This patch adds a temporary action item to the file context menu so the menu doesn't expand and a part of it is not hidden.

BUG=290390
TEST=manually tested

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229636 0039d316-1c4b-4281-b951-d872f2087c98
Enables system key functionality on the virtual keyboard. Note the power button currently does not get propagated correctly. It is blocked due to chromoting (crbug/146609). This will be addressed in a later patch.

BUG=297103

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229637 0039d316-1c4b-4281-b951-d872f2087c98
Random clean up on Drive related code.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229638 0039d316-1c4b-4281-b951-d872f2087c98
Support hidpi avatar icons in avatar menus and buttons

Derive from CanvasImageSource to draw avatar icons for title menu and buttons. Also make the title menu "etching" less ugly, especially in fullscreen.

BUG=306252

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

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