ozone: Use gfx::Display size for touch scaling

The old default causes weird scaling on the Chromebook Pixel. Try to use
the display size to set the scale.

TEST=content_shell with embedded=1 on pixel
TBR=rjkroege

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251075 0039d316-1c4b-4281-b951-d872f2087c98
Change  mojo demo apps to use Application.

BUG=None
R=darin@chromium.org, ben

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251076 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Rename public/tests/test_support.* -> test_utils.*.

I'm planning on reusing the name test_support for something slightly
different: a dynamic library that can thunk to an implementation
provided by the test runner (much like we do for system and gles2). This
is so we can remove public/tests's base dependency (by injecting it
instead).

R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251077 0039d316-1c4b-4281-b951-d872f2087c98
Code refactor(rename email to user_id in wallpaper_manager.*)

BUG=NONE

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251078 0039d316-1c4b-4281-b951-d872f2087c98
Add basic coalescing behavior to the permission bubble manager.

The manager will now wait 400ms after it receives both a request and its view
before showing a bubble.  This allows permissions that are requested
quickly in sequence to be shown together, in only one bubble.  Permission
requests that occur when there is already a bubble visible are queued and not
shown until the current bubble disappears.

This simple wait period is probably simpler than the final design, but is a
good stepping stone toward a better algorithm.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251079 0039d316-1c4b-4281-b951-d872f2087c98
Check for GN args using the union of all rather than individually.

Previously we would check for unused args on a per-build basis. In the GYP build we run the build multiple times, and not all args might be declared in all types of builds. For example, clang args would only be relevant for clang builds, which might only be in the host GYP build.

Makes unused args errors nonfatal. This was coming up a lot in benign cases. It's important to notify people about unused arguments, but it's not critical to block progress on this problem.

R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251080 0039d316-1c4b-4281-b951-d872f2087c98
Fix the Mac status bubble.

This partially reverts the "cleanup" of r250260. The "cleaner" version is not equivalent if the call to -[NSWindow animations] returns nil.

BUG=none
TEST=no change

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251082 0039d316-1c4b-4281-b951-d872f2087c98
Add support for sub-architecture when building for iOS

Since iOS 7, the iPhone 5s, the iPad Air and the iPad Mini Retina
supports 64-bits binaries. This requires building a fat binary with
support for both armv7 and arm64 (and optionally armv7s).

In an effort to prepare building such a fat binary for Chrome on
iOS, introduce a "target_subarch" variable that control the variant
we want to build (32-bit only, 64-bit only -- mainly for debugging,
fat binary).

This require introducing way to use the clang compiler shipped with
Xcode, as the clang compiler shipped with Chromium code does not
support "arm64" architecture yet (Apple has not yet opensource the
implementation).

BUG=341453, 314720
R=mark@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251083 0039d316-1c4b-4281-b951-d872f2087c98
Add wallpaper api tests

This CL add the following tests:
1. test chrome.setWallpaper can set ChromeOS wallpaper from jpg or png formatted arraybuffer.
2. test chrome.setWallpaper can set ChromeOS wallpaper from a valid url that point to a jpg or png image.
3. test an invalide URL wont set wallpaper
4. test a new wallpaper request will cancel previous unfinished request


BUG=176183

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251087 0039d316-1c4b-4281-b951-d872f2087c98
Fix race condition on kiosk app launch.

The previous code would fail for the case of the app window already
present before the observer gets registered.

BUG=chromium:343540

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251088 0039d316-1c4b-4281-b951-d872f2087c98
Revert 250823 "With --site-per-process, avoid a crash when a sub..."

Speculative revert to see if the navigation changes here are causing
sync_integration_tests to fail on:

http://build.chromium.org/p/chromium.win/builders/Win7%20Sync%20x64/builds/11217

> With --site-per-process, avoid a crash when a subframe process goes away.
> 
> We need to clear out the children of any nodes that are affected by the
> crash, not the entire FrameTree.
> 
> BUG=338508
> TEST=Killing an iframe process with --site-per-process shows a green rectangle.
> R=ajwong@chromium.org, nasko@chromium.org
> 
> Review URL: https://codereview.chromium.org/156303004

TBR=creis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251090 0039d316-1c4b-4281-b951-d872f2087c98
[android_webview] Fix the AOSP bot manifest.

This incorporates a neccessary fix.

BUG=None
TEST=None
TBR=torne@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251091 0039d316-1c4b-4281-b951-d872f2087c98
Revert 250826 "Remove Profile dependency from apps::ShellWindow"

Speculative revert for failures:

http://build.chromium.org/p/chromium.win/builders/Win7%20Sync%20x64/builds/11201

> Remove Profile dependency from apps::ShellWindow
> 
> Part of the effort to remove src/chrome dependencies from src/{apps, extensions}
> 
> BUG=341690
> TBR=tapted@chromium.org,stevenjb@chromium.org
> 
> Review URL: https://codereview.chromium.org/157813007

TBR=rockot@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251094 0039d316-1c4b-4281-b951-d872f2087c98
Revert 250828 "Add a UMA stat to track if the Browser blacklist ..."

Speculative revert for failures here:

http://build.chromium.org/p/chromium.win/builders/Win7%20Sync%20x64/builds/11201

> Add a UMA stat to track if the Browser blacklist is Set on the Renderer
> 
> This shouldn't be happening, but we got some crash reports suggesting it
> does. Unable to repo locally so this stat will verify it does occur and
> then can be used to verify our fixes actually fix it.
> 
> BUG=329023
> 
> Review URL: https://codereview.chromium.org/140763008

TBR=csharp@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251095 0039d316-1c4b-4281-b951-d872f2087c98
Fix printing unittests after revert of r230235

r251066 reverted the backgrounding of the print dialog.

Before the revert

http://src.chromium.org/viewvc/chrome/trunk/src/printing/printing_context_win_unittest.cc?r1=232466&r2=232611

assumed they were going to be async, so added RunLoop. Now that the
dialog is synchronous again, remove that code which is causing the
MessageLoop to complain.

TBR=vitalybuka@chromium.org
R=asvitkine@chromium.org
BUG=180997,342697

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251102 0039d316-1c4b-4281-b951-d872f2087c98
Update svn:ignore, third_party/clang_format/script and chrome/test/media.


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251104 0039d316-1c4b-4281-b951-d872f2087c98
Fix a bug with mojom imports where 2 imports with the same namespace would
cause a variable name collision in JS.

BUG=325500
R=darin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251105 0039d316-1c4b-4281-b951-d872f2087c98
Revert 251003 "Revert 250830 "Exclude notification strings for b..."

> Revert 250830 "Exclude notification strings for builds that dont..."
> 
> > Exclude notification strings for builds that dont use it.
> > 
> > BUG=326023
> > 
> > Review URL: https://codereview.chromium.org/160113002
> 
> Broke win64 sync tests, e.g. output:
> 
> c:\b\build\slave\cr-win-rel-x64\build\src\chrome\browser\sync\test\integration\sync_test.cc(707): error: Value of: UTF16ToASCII(browser()->tab_strip_model()->GetActiveWebContents()-> GetTitle())
>   Actual: ""
> Expected: "Notifications enabled"
> 
> TBR=aurimas@chromium.org
> 
> Review URL: https://codereview.chromium.org/163713002

Reverting the revert, since this wasn't responsible for the failures.

TBR=asvitkine@chromium.org

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

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