cc: Apply occlusion before creating quads in DelegatedRendererLayerImpl.

This makes the AppendQuads method query occlusion directly and subtract
it from the quads it would create before they are created, skipping
quads that are completely occluded and avoiding a malloc/free for them.

R=enne@chromium.org
BUG=344962

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259725 0039d316-1c4b-4281-b951-d872f2087c98
Use UtilityProcessHost to patch files.

Second part of a 2-part changelist.
The first part is https://codereview.chromium.org/25883006/

BUG=304879

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259726 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Disable audio splice frame generation for now. (https://codereview.chromium.org/213473004/)

Reason for revert:
Causes test failures.

http://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%20Tests%20%281%29/builds/569/steps/media_unittests/logs/stdio

Original issue's description:
> Disable audio splice frame generation for now.
> 
> BUG=356073, 356545
> TEST=none
> R=acolwell@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259713

TBR=acolwell@chromium.org,dalecurtis@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=356073, 356545

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259728 0039d316-1c4b-4281-b951-d872f2087c98
Avoid unnecessary gloweffect calls

When there's some overscroll in the x axis (getting us past the rounding check) and
an epsilon of overscroll in the y axis due to numerical error, this later convinces
OverscrollGlow to trigger the fling glow in that direction.  The Rounded check only
protected us against epsilons in *both* directions.  Replace this with removing
the epsilon explicitly in unused_scroll_delta.

BUG=354325

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259729 0039d316-1c4b-4281-b951-d872f2087c98
Use the opaque header for inactive apps when maximized.

BUG=350007
TEST=Manual, see bug

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259730 0039d316-1c4b-4281-b951-d872f2087c98
[Android Mirror] Expose the new profile management to Java.

BUG=316637,356831
TESTS=no intended changes.
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259731 0039d316-1c4b-4281-b951-d872f2087c98
Adds suppression for leak

The objects showing up as being leaked (CallbackHolder) are embedded
in the v8 heap. This tests seems to be shutting down in a way that
doesn't cause the finalizers for these objects to run and we
leak. Temporarily supressing until we sort out the issue.

BUG=356785
TEST=none
R=jochen@chromium.org
TBR=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259732 0039d316-1c4b-4281-b951-d872f2087c98
[Mac] Remove unnecessary dlsym indirection for pthread_setname_np.

BUG=none
TEST=Threads are still named as before.
R=mark@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259733 0039d316-1c4b-4281-b951-d872f2087c98
Add an OWNERS file for synced notifications.

NOTRY=true
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259734 0039d316-1c4b-4281-b951-d872f2087c98
Replace CurrentPhysicalTimeTicks with a fallback in CurrentFrameTimeTicks.

CurrentPhysicalTimeTicks was needed because some tasks are scheduled
independently from frames.  They may fall hundreds of milliseconds after
the last frame, so it's not appropriate to use the last frame time for
them.  So we used CurrentFrameTimeTicks for mid-animation timestamps and
CurrentPhysicalTimeTicks for input/random tasks (including the
scheduling of delayed animations).  But there are two problems with this:
1) It's very easy to use the wrong one by accident.
2) Providing alternately frame and physical time to the same method can
lead to nonmonotonic time.  The scrollbar fade controller currently
suffers from this and sometimes fails to fade the scrollbar as a result
(see bug).

This patch changes CurrentFrameTimeTicks to use physical time as a
fallback when frame time is unavailable.  This is monotonic and can't be
used incorrectly.

NOTRY=true
BUG=356032

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259735 0039d316-1c4b-4281-b951-d872f2087c98
Add LLVM 'unreachable' instruction to list of allowed instructions.

BUG= none
TEST= none
NOTRY=true
(documentation only change)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259736 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Add AppsGridView unit test for folder ui tests. (https://codereview.chromium.org/211423006/)

Reason for revert:
Compile errors.

http://build.chromium.org/p/chromium.win/builders/Win%20x64%20Builder/builds/16508

Original issue's description:
> Add AppsGridView unit test for folder ui tests. This cl add ui tests for:
> 1. Drag/drop items in top level to re-order items.
> 2. Drag/drop items to create a folder or add items into an existing folder.
> 3. Test the maximum number of items user can drag/drop into a folder.
> 
> BUG=354627
> R=xiyuan@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259720

TBR=xiyuan@chromium.org,tfarina@chromium.org,jennyz@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=354627

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259737 0039d316-1c4b-4281-b951-d872f2087c98
Use AreEmailsSame() to compare email strings.

This does not fix the bug, but its something I found while investigating.

BUG=253081

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259738 0039d316-1c4b-4281-b951-d872f2087c98
Docserver: Don't pull in all example files in the cronjob. It's just a bit too
much for it to handle right now, and the example files are not commonly
accessed. It's much more important that the normal page content get loaded.

TBR=yoz@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259739 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Use UtilityProcessHost to patch files. (https://codereview.chromium.org/25909005/)

Reason for revert:
linux asan failure

http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%2BLSan%20Tests%20%282%29/builds/901/steps/unit_tests/logs/DifferentialUpdateFails

Original issue's description:
> Use UtilityProcessHost to patch files.
> 
> Second part of a 2-part changelist.
> The first part is https://codereview.chromium.org/25883006/
> 
> BUG=304879
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259726

TBR=sorin@chromium.org,dgarrett@chromium.org,sky@chromium.org,cdn@chromium.org,waffles@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=304879

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259740 0039d316-1c4b-4281-b951-d872f2087c98
Fix 64 bit Mac build issue.

NPEventModelCarbon does not exist when NP_NO_CARBON.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259741 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Move public C system header files to mojo/public/c/system/.

(macros.h is a bit strange, since it contains C++ macros as well. We may
want to split this file.)

R=darin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259742 0039d316-1c4b-4281-b951-d872f2087c98
SSLPolicy::UpdateEntry is returning when it encounters first error.
Because of this, SSLStatus::DISPLAYED_INSECURE_CONTENT should be set before other errors are examined.

This handles the case when not all flags are set if there are some problems with the certificate on the page *and* insecure content is loaded.

BUG=348560

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259743 0039d316-1c4b-4281-b951-d872f2087c98
Cast: wire up the callbacks to allocate VEA and shared memory.

BUG=354267
R=hclam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259746 0039d316-1c4b-4281-b951-d872f2087c98
Mac: Fix sorting on "idle wakeups"

Added missing case in CompareValues().

BUG=356480

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

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