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
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
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
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
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
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
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
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
Consider the last_check time when doing update checks for components.

BUG=344938
R=waffles@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252045 0039d316-1c4b-4281-b951-d872f2087c98
Re-enable WebNotifications test for linux aura.

This test is now passing, though with console warnings about IsFullScreenMode
not implemented yet for linux and a RENDER WARNING (already noted in
http://crbug.com/333003).

BUG=163931

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252046 0039d316-1c4b-4281-b951-d872f2087c98
Re-enable ManyPopupNotifications test for linux aura.

The test passes now, but with the IsFullScreenMode implementation warning (harmless to
this test).

BUG=163931

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252047 0039d316-1c4b-4281-b951-d872f2087c98
Center browser dialogs with respect to docked devtools

Currently browser dialogs are centered relatively to the main
webcontents. If one has docked devtools which occupy 90% of the browser
window, the dialog is hardly seen.

This patch makes dialogs to be centered with respect to open devtools,
which means centering to the container of both inspected webcontents
and and devtools.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252048 0039d316-1c4b-4281-b951-d872f2087c98
Fix DCHECK failure in RenderWidgetHostViewAura::InsertText()

Do not call InsertText() if there is no focused text input client or the text input type is TEXT_INPUT_TYPE_NONE.

BUG=343875

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252049 0039d316-1c4b-4281-b951-d872f2087c98
Add very simple test list for chromium_trybot recipe to the chromium tree

This will allow changing, adding, and removing tests without two-sided
patches.

The list format can be extended in the future, for now keeping it as simple
and static as possible.

BUG=332239
R=darin@chromium.org, iannucci@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252050 0039d316-1c4b-4281-b951-d872f2087c98
Telemetry: Look for a page's display name when replaying it.

When recording a page, we identify it by its "display name" (name if it has one,
otherwise URL unless it's a file). When replaying a page, however, we always use
its URL to look up the correct WPR file. So pages with names cannot be found.

R=tonyg@chromium.org
BUG=344380

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252052 0039d316-1c4b-4281-b951-d872f2087c98
Moving the autofill enum from blink side to browser side

Removing the autofill enum from blink side and moving it to
browser side in components/autofill/core/common/autofill_enums.h.
This patch is only adding of enum in browser side. Removing of
enum from blink side is done in another patch.

BUG=302489
TBR=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252053 0039d316-1c4b-4281-b951-d872f2087c98
Add ApiCompatibilityUtils for setImageAlpha.

ImageView.setImageAlpha is available only since JB. Use setAlpha preJB.

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252054 0039d316-1c4b-4281-b951-d872f2087c98
Fix crash when .mhtml/.pdf files are opened from download shelf on Chrome OS.

BUG=344808

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

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