Enable platform echo cancellation through the AudioRecord path.

Re-land https://codereview.chromium.org/99033003/ with a CrOS build fix.

TBR=tommi

Including the original CL description here:
Add a platform effects mask member to AudioParameters. This allows the
availability of platform effects (currently AEC) to be plumbed up to
MediaStreamDependencyFactory, where they can be reconciled with the
media constraints to determine if the effects should be enabled. When
this is the case, the constraints will be modified to disable the
corresponding software effect in PeerConnection.

The availability is controlled by a whitelist of device models in
AudioManagerAndroid, which for AEC, currently consists of Nexus 5 and
Nexus 7.

AudioManagerAndroid will use the AudioRecord path iff the platform
AEC is enabled.

TESTED=Using apprtc on a N5 and N7 (whitelisted):
- The AudioRecord input path is used.
- The platform AEC is enabled and the software AEC (in PeerConnection)
is disabled.
- Calls have good echo cancellation quality.

Using apprtc with ?audio=googEchoCancellation=false on a N5 and N7:
- The OpenSLES input path is used.
- Both the platform and software AEC are disabled.

Using apprtc on Nexus 4 (non-whitelisted):
- The OpenSLES input path is used.
- The platform AEC is disabled and the software AEC is enabled.

Using apprtc on Galaxy S2 (running ICS):
- The OpenSLES input path is used.

audio_android_unittest.cc passes on N5, N7 and Galaxy S2

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240787 0039d316-1c4b-4281-b951-d872f2087c98
roll gyp 1806:1816

r1807 win msvs: make ordering match .gyp order
r1808 Fix gyptest-app for Xcode 5.0.2
r1809 Fix gyptest-xcode-gcc.py when using Xcode 5.0.2
r1810 Fix gyptest-sdkroot when oldest SDK is >= 10.8
r1811 Fix gyptest-xcode-env-order for Xcode 5.0.0
r1812 win msvs: Make ordering of sources in subdir
r1813 win ninja: Refactor manifest generate and embed to be 1-pass
r1814 win ninja: default to embedding manifest to match msvs
r1815 Use gyp.common.EnsureDirExists in more places.
r1816 Add backported OrderedDict

TBR=thakis@chromium.org
BUG=324863,276953,326030

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240791 0039d316-1c4b-4281-b951-d872f2087c98
Revert 240790 "roll gyp 1806:1816"

2.6 code fails.

> roll gyp 1806:1816
> 
> r1807 win msvs: make ordering match .gyp order
> r1808 Fix gyptest-app for Xcode 5.0.2
> r1809 Fix gyptest-xcode-gcc.py when using Xcode 5.0.2
> r1810 Fix gyptest-sdkroot when oldest SDK is >= 10.8
> r1811 Fix gyptest-xcode-env-order for Xcode 5.0.0
> r1812 win msvs: Make ordering of sources in subdir
> r1813 win ninja: Refactor manifest generate and embed to be 1-pass
> r1814 win ninja: default to embedding manifest to match msvs
> r1815 Use gyp.common.EnsureDirExists in more places.
> r1816 Add backported OrderedDict
> 
> TBR=thakis@chromium.org
> BUG=324863,276953,326030
> 
> Review URL: https://codereview.chromium.org/109223004

TBR=scottmg@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240794 0039d316-1c4b-4281-b951-d872f2087c98
Implicitly ensure backbuffer creation on draw

Instead of having a special IPC channel to ensure a backbuffer is allocated
for a given GL context, we can create it implicitly on the first draw attempt
into FBO 0. If this fails, the context is considered lost.

BUG=181120

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240797 0039d316-1c4b-4281-b951-d872f2087c98
Chrome Now notificationGroups Storage Race Condition Fix

Updating cards involves updating the notificationGroups in rapid succession,
leading to race conditions between storage.get and storage.set. The queued
up storage.gets may dispatch all at once before each storage.set, meaning that
the storage.set will set stale values.

In other words, we get
storage.get
storage.get
storage.set
storage.set

instead of
storage.get
storage.set
storage.get
storage.set

The fix here is to move the requests outside of the for loop, adding
arguments to functions where necessary to work around this gotcha.

BUG=164227

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240798 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] nacl_io: Rename Mount -> Filesystem, MountNode -> Node.

(This basically renames everything...)

BUG=none
R=noelallen@chromium.org, sbc@chromium.org

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

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

TBR=asargent
BUG=328441

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240800 0039d316-1c4b-4281-b951-d872f2087c98
Removing GetDefaultProfile from AshSystemTrayDelegate and browser tests

BUG=322682
TEST=covered by existing unit tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240801 0039d316-1c4b-4281-b951-d872f2087c98
Fix create_nmf.py on non-English locale.

It would fail parsing localized string otherwise. For example 'file format' is
'format de fichier' with LANG=fr_CA.UTF-8.

Fix file_arch could be used before being assigned.

R=sbc@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240802 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Kill adb socket forward during TearDown.

Also ensure we call Quit if there's an error during session creation.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240803 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] Add option to test_projects to build project first.

You can now pass -b to test_projects to build the projects you specify.

I've also removed the -p options for test_projects and build_projects. They've
been deprecated for a while, and I don't think anyone is using them anymore.

BUG=none
R=sbc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240804 0039d316-1c4b-4281-b951-d872f2087c98
Add stub ExtensionsClient to app_shell

Also register ExtensionPrefs. This allows app_shell to run until it tries
tries to bring up ExtensionSystem.

BUG=None
TEST=compiles, app_shell launches
R=yoz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240805 0039d316-1c4b-4281-b951-d872f2087c98
Get proper value for OS error to histogram

BUG=326545

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240806 0039d316-1c4b-4281-b951-d872f2087c98
Beginning of JS Mojo API to GL.

R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240807 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: More data pipe work -- consumer-side dispatcher.

Define/implement DataPipeConsumerDispatcher, and the parts of the
DataPipe base class that it interacts with.

R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240809 0039d316-1c4b-4281-b951-d872f2087c98
Support multiple TTS voices on Windows.

BUG=88059

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240810 0039d316-1c4b-4281-b951-d872f2087c98
Fix setting the user image to the profile image and re-enable tests

This CL ensures that the user is able to set the user image to the profile
image and re-enables the corresponding tests.

BUG=321208
TEST=browser tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240811 0039d316-1c4b-4281-b951-d872f2087c98
Add missing mojo_utility_unittests target to mojob.sh

Also sort the unit tests in alphabetical order so it is easier to add
new targets.

BUG=None
TEST=./mojo/tools/mojob.sh test, verifies it also runs
mojo_utility_unittests
TBR=darin@chromium.org,viettrungluu@chromium.org
NOTRY=true

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

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