Convert NaCl non-SFI sandbox to BPF DSL

BUG=375497
TBR=mseaborn@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287067 0039d316-1c4b-4281-b951-d872f2087c98
Plumb through aria relation attributes for automation API.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287068 0039d316-1c4b-4281-b951-d872f2087c98
Configure termination-on-heap-corruption using a delegate method rather than a parameter, in order to defer calculating the value until after the AtExitManager is initialized.

BUG=398747

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287069 0039d316-1c4b-4281-b951-d872f2087c98
GetHelp manifest update: for Helpouts integration.

BUG=chromium:383757

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287070 0039d316-1c4b-4281-b951-d872f2087c98
Pepper: Remove trusted plugin loadable module.

This change links the trusted plugin into the renderer, making it easier for
the trusted plugin to use libraries in Chromium. This removes the
ppGoogleNaClPlugin loadable module file on various platforms.

This is part of a larger effort to remove the "trusted plugin" used to
bootstrap NaCl plugins.

It introduces an "internal_module" interface for setting the value returned by
pp::Module::Get(). This is so that both the trusted plugin and the remoting
plugin can be linked into the renderer. However, I believe this is safe because
the trusted plugin runs in-process and the remoting plugin runs out-of-process.

BUG=394497
R=dmichael@chromium.org, mseaborn@chromium.org, phajdan.jr@chromium.org, thestig@chromium.org, wez@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287071 0039d316-1c4b-4281-b951-d872f2087c98
athena: Set a default background for the window title.

The window title/background is currently set only when the activity is
updated after the window is created. But if the activity is already
loaded by the time it is added, or if the activity is never loaded (e.g.
because of unavailable network), then the activity is never updates,
and consequently athena ends up showing a transparent window title. So
set the title once upon creation.

BUG=398937
R=oshima@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287074 0039d316-1c4b-4281-b951-d872f2087c98
Remove CUP from google_apis

It was committed 13 months ago, and has seen no activity sense.
I failed, as a reviewer, for not ensuring that an appropriate
BUG was filed to track exactly why this code was being included,
how it would be used, and who would own it.

Even if this code "might" be used in the future, 13 months of
inactivity suggest it's time to remove this code, especially
when it's only half-implemented.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287075 0039d316-1c4b-4281-b951-d872f2087c98
Use expanded heuristics for GPU rasterization on future OS versions

The use of expanded heuristics for triggering GPU rasterization
(this is, the use of viewport "width=device-width, minimum-scale=1.0"
as a GPU rasterization trigger) is currently controlled by a field
trial. This CL causes expanded heuristics to always be used on
under-development and future Android OS versions.

Specifically, this CL:
1) creates a new blacklistable feature for expanded heuristics for GPU
   rasterization;
2) whitelists Android OS versions >= 4.4.99; and
3) moves the field trial logic to the same place as the blacklist check.

BUG=399306

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287076 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Stop using -Wno-sentinel with clang. (https://codereview.chromium.org/427723005/)

Reason for revert:
breaks Google Chrome Linux

http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux/builds/36758/steps/compile/logs/stdio

Original issue's description:
> Stop using -Wno-sentinel with clang.
> 
> Clang works fine with -Wsentinel on 32bit linux these days.
> 
> BUG=162818
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287061

TBR=dmikurube@chromium.org,thakis@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=162818

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

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

These tests were mocking half of the browser and had a very high rate of
flakes. This rewrite implements the same checks in an
InProcessBrowserTest, which brings all the bits and pieces required.

BUG=361044,396506

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287079 0039d316-1c4b-4281-b951-d872f2087c98
Fix tracing buffer usage updates after r286983

BUG=398787

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287080 0039d316-1c4b-4281-b951-d872f2087c98
extensions: Add GN version of extensions_test_support target.

BUG=None
TEST=gn gen out/Debug_gn && ninja -C out/Debug_gn extensions:test_support
R=brettw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287081 0039d316-1c4b-4281-b951-d872f2087c98
Fix views::WebView focus for Print Preview and other web dialogs.

Focus the dialog's WebView when its WebContents is focused.
Use a FocusChangeObserver to assist with this task.

BrowserView does this for its WebViews by overriding:
  WebContentsDelegate::WebContentsFocused

TODO: Cleanup the WebView/WebContents/etc. focus pattern...
(See Ben's WebView::OnWebContentsFocused TODO)

BUG=368691
TEST=Focusing between the omnibox and print preview dialogs works correctly (the omnibox loses focus, closes any dropdowns, doesn't show cursor/selection).
R=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287082 0039d316-1c4b-4281-b951-d872f2087c98
Formalize the concept of page runs in PageTestResults.

A page run is created on StartTest and finalized on StopTest.
We allow StopTest to discard the entire run (to support
discard_first_run option). We also allow a page run to restart
a new attempt at running the page (via
PageTestResults.WillAttemptPageRun) - this will clear any
existing results for the run.

As a results of this change:
* page_runner.py no longer need to use a hack of creating a
temporary results object.
* When we skip a test, it is now considered a success, so 
the last line of the test will now include the count for skipped
tests (the line that says: [ PASSED ] 1 test. See
gtest_test_results_unittest].

This patch does not yet remove AddSuccess, since it is still
used in GTestTestResults. I plan to move the logic there
to StopTest instead of AddSuccess (similarly for _EmitFailure
and _EmitSkip).

BUG=383639

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287083 0039d316-1c4b-4281-b951-d872f2087c98
Added message header validation unit tests for JavaScript

Added a validation test that uses the message .data and .expected files in mojo/public/interfaces/bindings/tests/data/validation. Currently only the message header conformance tests, i.e. the files called *_msghdr_*.{data,expected} are used.

This is the the third and last part of the original CL for "Validate incoming JS Message Headers", per https://codereview.chromium.org/406993002#msg2. The first part is https://codereview.chromium.org/411553003, second part: https://codereview.chromium.org/424463003.


BUG=395801

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287084 0039d316-1c4b-4281-b951-d872f2087c98
[Search] Change the styling for the contextual search promo source

Some CSS tweaks.

BUG=None
TEST=manual
R=huangs@chromium.org, pedrosimonetti@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287085 0039d316-1c4b-4281-b951-d872f2087c98
Task Manager: Stop showing the "NaCl debug port" column by default on Views.

BUG=369320

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287086 0039d316-1c4b-4281-b951-d872f2087c98
bisect-builds.py: Added support for bisecting ASAN builds

Supported platforms: "linux", "mac", "win"

BUG=325756

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287087 0039d316-1c4b-4281-b951-d872f2087c98
Refactor JS browser tests.

Move the common methods from the existing PIN tests into browser_test.js and add expectEvent.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287088 0039d316-1c4b-4281-b951-d872f2087c98
Revert "Pepper: Remove trusted plugin loadable module."

The reverted change broke the ChromeOS builder, which depends on the loadable
module file existing. Argh.

This reverts commit b0b91c06bc2ed6afc0611f00d68f72b19dd06d26.

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