Add ShapedScreenCapturer

ShapedScreenCapturer is a layer on top regular screen capturer that captures
desktop shape and attaches it to the generated frames.

R=wez@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241614

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241692 0039d316-1c4b-4281-b951-d872f2087c98
[MemSheriff] Suppress false positives caused by V8

NOTRY=true
BUG=328552
TBR=earthdok@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241693 0039d316-1c4b-4281-b951-d872f2087c98
Remove --reduce-gpu-sandbox command-line flag.

The sandbox is always set to a reduced level nowadays, so the command-line flag does nothing.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241694 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: More data pipe testing.

Test waiting quite thoroughly.

R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241695 0039d316-1c4b-4281-b951-d872f2087c98
[Gtk] Fix gtk_floating_container_forall ordering.

Floating children are placed above the single child from GtkBin, so
we should visit them first. This fixes:
- overlay devtools no longer block drag events in page;
- user can drag and drop from the page to find bar.

BUG=329539

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241697 0039d316-1c4b-4281-b951-d872f2087c98
Run all flag-checks for new-profile-managment et al through common functions for future Finch integration.

In order to do tests and a safe, controlled roll-out of Chrome's new profile management, we're going to enable it using a Finch experiment.  The current tests of the existing command-line flags all need to be routed through common functions in order to override these settings if a Finch experiment is set.

Affected flags are:
  --new-profile-management
  --enable-inline-signin
  --google-profile-info

Note that there existed a function to test for NewProfileManagement but it was not in a good place for general testing and definitely not for other flags so it has been extracted as well.

BUG=324046

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241698 0039d316-1c4b-4281-b951-d872f2087c98
[MemSheriff] Widen suppression

BUG=106912
TBR=thestig@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241699 0039d316-1c4b-4281-b951-d872f2087c98
[rac] Use Chrome's scoped pointers in libaddressinput.

BUG=327046

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241700 0039d316-1c4b-4281-b951-d872f2087c98
Implement replacement policies for the ephemeral apps cache

Garbage collect inactive ephemeral apps. The app's data will be removed
at the same time for now. The policies of the cache are:
1. If the app is currently running, it will not be removed.
2. If the app has been launched within 1 day, it will not be removed.
3. If the app has not been launched for more than 10 days, it will be
removed.
4. For apps that have been launched between 1 and 10 days, the least
recently launched excess will be removed if the cache exceeds 30
apps.

BUG=312460

TEST=unit_tests (EphemeralAppServiceTest.*)
browser_tests (EphemeralAppServiceBrowserTest.*)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241701 0039d316-1c4b-4281-b951-d872f2087c98
Keep NaCl plugins used in app background pages alive when active.

Activity in Native Client plugins results in IPC messages
sent to the BrowserPpapiHostImpl and routed to call
extensions::ProcessManager::KeepaliveImpulse.

Implementation patch, to be followed by tests. See:
https://codereview.chromium.org/111563006/ Tests.
https://codereview.chromium.org/105873003/ Cumulative patch.

Design doc: 
https://docs.google.com/a/chromium.org/document/d/1mI0lS1rfAf-BAGLmWAEcWy37Xq9dOvgfMx8OqeUMXts/edit#

BUG=298339

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241702 0039d316-1c4b-4281-b951-d872f2087c98
Remove an unused OnClose() method from AudioInputCallback.

BUG=328357

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241703 0039d316-1c4b-4281-b951-d872f2087c98
linux_aura: Use the system font rendering settings.

We now read the system font, antialiasing, subpixel rendering
and hinting properties from XSettings.

Note that we don't use the hinting flag yet; I don't see it
used in render_text_pango.cc or anywhere else in the text
stack. Notably, we also only use subpixel rendering as a boolean.

BUG=318395, 318464

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241704 0039d316-1c4b-4281-b951-d872f2087c98
Revert 241681 "Let test_isolation_mode default to check on mac."

Still not working on the branded builders, lots of .isolate files still
hardcode "chromium framework" (see http://crbug.com/324911)

> Let test_isolation_mode default to check on mac.
> 
> It was set to noop in https://chromiumcodereview.appspot.com/14055005 due to
> issues with xcode. Now that xcode is no longer used, it can be set to check
> again.
> 
> BUG=none
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238025
> 
> R=maruel@chromium.org
> 
> Review URL: https://codereview.chromium.org/92303002

TBR=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241705 0039d316-1c4b-4281-b951-d872f2087c98
Optimize ExtensionAPI::IsAnyFeatureAvailableToContext from O(#features) to O(#children + log #features).

This also replaces O(N) string allocations with 1 and moves the top-level
feature check to the top of the function to provide a quick exit when the
context has full access.

And it adds an IsAvailable() overload taking a Feature to avoid the string
copies in GetFeatureDependency().

BUG=305000

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241706 0039d316-1c4b-4281-b951-d872f2087c98
Sync PRESUBMIT.py with CQ's projects.py.

This is a reland of https://codereview.chromium.org/58803002 which was reverted in https://codereview.chromium.org/64473002. It has been updated to reflect the latest projects.py changes.

BUG=278554
R=maruel@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241707 0039d316-1c4b-4281-b951-d872f2087c98
build/android/install_emulator_deps.py: run kvm-ok as root when needed.

This change runs kvm-ok as root after installing the kvm and qemu-kvm
packages to ensure that KVM can work. This gives better diagnostics in
case of failure, which can happen for one of the following reasons:

  - The CPU doesn't support virtualization extensions.
  - The extensions have been disabled by the BIOS.

BUG=NONE
R=yfriedman@chromium.org,navabi@chromium.org,tfarina@chromium.org,raphael.kubo.da.costa@intel.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241708 0039d316-1c4b-4281-b951-d872f2087c98
Removes 'GetDefaultProfile' from MessageCenterSettingsController.

Instead, the profile will be added after the for-loop because it
doesn't appear in the profile cache.

Also, the Rebuild should be stopped if the created profile is
off-the-record. Otherwise, GetOffTheRecordProfile() in Rebuild
will emit PROFILE_CREATED event.

BUG=322682
R=skuhne@chromium.org, dewittj@chromium.org
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241709 0039d316-1c4b-4281-b951-d872f2087c98
Enable testGotTimeline telemetry test for non-XP Windows platforms.

BUG=321529
TEST=test only seems to be flaky for XP

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241711 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Test data pipes from the CoreImpl level.

Test basic data pipe functionality and also passing data pipe consumer
and producer handles over data pipes.

From here, confidence that data pipes mostly work (modulo known bugs,
and also some unknown) is much higher.

R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241713 0039d316-1c4b-4281-b951-d872f2087c98
Retry idempotent methods on Chrome-Proxy: bypass

Requests using all idempotent HTTP methods (See RFC 2616) should be
retried after receiving a bypass message from the data reduction
proxy. Before this CL, only GET was being retried.

BUG=327740

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

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