Revert 251918 "Do not send a frame swap ack from the browser unt..."

The bots tells this CL broke most of the webrtc browser tests on Mac.
http://chromegw/i/internal.chromium.webrtc/builders/Mac%20Tester


BUG=344912
TEST=webrtc bots.

> Do not send a frame swap ack from the browser until the frame is drawn
> 
> Code to do this was recently removed because it was no longer being
> used in r241225 (https://codereview.chromium.org/116103002). This is
> now necessary again to throttle renderers when using CoreAnimation.
> 
> Frames are acked only when they are drawn. Both the CoreAnimation and
> the non-CoreAnimation paths are changed to behave this way. By virtue
> of the fact that the non-CoreAnimation path draws immediately, this
> should have no functional effect on that path.
> 
> This differs from the mechanism deleted in the aforementioned patch in
> two ways.
> 
> First, it uses a scoped_ptr of a struct instead of a vector of pairs to
> store the information about the swap being returned. This should improve
> readability in that the ack has struct names instead of just first and
> second in the pair, and in that the scoped_ptr does not suggest support
> for multiple pending swaps (which does not exist).
> 
> Second, it does makes RWHVMac ack frames more aggressively when
> inside a draw call, rather than adding a call from RWHImpl to the view,
> to effect the ack (which is what the old way does).
> 
> BUG=340133
> 
> Review URL: https://codereview.chromium.org/165703002

TBR=ccameron@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252031 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252031
android envsetup: Stop honoring --target-arch parameter.

Most people don't use this parameter and get arm binaries. This is
still the default, so this change shouldn't affect most people.

Folks should instead pass -Dtarget_arch to gyp. (Or, soon, envsetup will stop
clobbering GYP_DEFINES, then you can just add target_arch to your GYP_DEFINES.)
Note that in gyp land, 'mips' is called 'mipsel' and 'x86' is called 'ia32'.
'arm' stays 'arm'.

So for example, instead of running

  . build/android/envsetup.sh --target-arch=mips
  android_gyp

you'd run

  . build/android/envsetup.sh
  android_gyp -Dtarget_arch=mipsel

I updated the bots I was able to find to pass the -D flag in addition to
--target-arch. After this CL here is in, I'll update the bots to stop passing
--target-arch, and then I'll make --target-arch a hard error in this script for
a while, to make sure nobody still uses it.

BUG=330631,34476
R=torne@chromium.org
TBR=yfriedman

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252034 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252034
Revert 251703 "Add GetDeviceSupportedFormats to Win DirectShow."
See details in issue.

BUG=344931

> Add GetDeviceSupportedFormats to Win DirectShow.
> 
> Extracted pixel format translation logic to 
> TranslateMediaSubtypeToPixelFormat().
> 
> BUG=309554, 314161
> 
> Review URL: https://codereview.chromium.org/156583004

TBR=mcasas@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252036 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252036
Android: pass AutofillSuggestion to the logger.

BUG=341493
NOTRY=True
NOTREECHECKS=true
R=benm@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252037 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252037
Revert of cc: Remove the --enable-partial-swap flag. (https://codereview.chromium.org/167953003/)

Reason for revert:
Should have only enabled this on ChromeOS. Enabled elsewhere by mistake.

Original issue's description:
> cc: Remove the --enable-partial-swap flag.
> 
> R=piman
> BUG=
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251898

TBR=piman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252038 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252038
Stub to prevent VS2013 from creating unwanted .gitattributes.

BUG=342064
R=darin@chromium.org, scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252039 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252039
GN: Change gen command syntax, support relative dirs.

This removes the default "gen" command so that "gn" by itself does nothing (it prints a short help message).

The "gen" command now takes as an argument the output directory to use, and I removed the --output flag except for the "gyp" command (which will be needed until we update gyp_chromium).

Updates the base build file to keep in sync with recent changes.

True relative directories are now supported, so that the directories given to the gen command can be relative to the current one. It also supports relative directories for the desc and refs command. This allows you to be in the base directory and say "gn desc :base" and it will resolve the ":base" label relative to the current directory in the source tree.

R=dpranke@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252040 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252040
drive: Add tests for FileSystem methods

There are tests for each operation and each sync performer.
But, no test verifies operation classes and performer classes working together.

Add tests for FileSystem::Copy(), Move(), Remove(), CreateDirectory(), CreateFile(), TouchFile() and TruncateFile().

BUG=340210
TEST=unit_tests --gtest_filter="FileSystemTest.*"

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252041 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry] Refactor mac power monitoring to use the base PowerMonitor class.

R=jeremy@chromium.org,tonyg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252042 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252041
Added support for additional popup-blocking policies on Android.

This platform also supports PopupsAllowedForUrls and PopupsBlockedForUrls.
If these policies are enabled on the template then they'll be loaded by the
cloud policy provider.

BUG=341493

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252043 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Use createDirectoryContents_ method during search.

Previously, during typing a search query on the drive, Files.app uses
DirectoryContents#createForDirectory method. It does not handle FakeEntries so
it causes an exception if a user typing a search query in the drive special
folders. This CL replace the method with createDirectoryContents_, which is
a caller of the createForDirectory method and can handle FakeEntries.

BUG=344459
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252044 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252044