Implement WebMIDI for android, output side.

Implement WebMIDI for android.
This CL implements the output function only.

BUG=303596
R=toyoshim@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250648 0039d316-1c4b-4281-b951-d872f2087c98
Revert of [Telemetry] Add idle process metrics on OS X > 10.8.4 . (https://codereview.chromium.org/143823019/)

Reason for revert:
mac_power_info is a python script and setuid won't work for such scripts, we need to reimplement it as a binary helper executable.

Original issue's description:
> [Telemetry] Add idle process metrics on OS X > 10.8.4 .
> 
> BUG=338712
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250016

TBR=tonyg@chromium.org,rsesek@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=338712

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250649 0039d316-1c4b-4281-b951-d872f2087c98
Update HeapSnapshotTaker to catch up with recent changes to the remote debugging protocol

After https://codereview.chromium.org/98273008/ is landed heap snapshot will be sent to the frontend immeiately in response to HeapProfiler.takeHeapSnapshot command. This change switches HeapSnapshotTaker to the new protocol.

BUG=324769

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250650 0039d316-1c4b-4281-b951-d872f2087c98
This is the clean-up following r249138.

Introduce a GetUpdatesDelegate class to contain request behavior that is
specific to a GU type.  There are implementations for Normal, Retry,
Poll and Configure GUs.  

These implementations may have different members.  For example, only the
'Normal' GU requires a NudgeTracker.

They also implement different functionality for building the request
message and for applying the received updates.  The latter is to allow
the configure GetUpdates to apply updates directly on the sync thread.

The GU types can still vary in other ways that are not encapsulated in
the GU delegate.  For example, the Poll GU is not retried on failure,
though this is not expressed in its GU delegate in any way.

BUG=278484

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250651 0039d316-1c4b-4281-b951-d872f2087c98
Add a switch to enable/disable Instant search in about:flags.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250652 0039d316-1c4b-4281-b951-d872f2087c98
Fix leak in WeakPtrTest.MoveOwnershipAfterInvalidate

Needs a virtual destructor to clean up correctly when passing
a derived TargetWithFactory instance to the background thread for
deletion (BackgroundThread::DeleteTarget gets a base class pointer).

BUG=268267

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250653 0039d316-1c4b-4281-b951-d872f2087c98
Fix the wrong condition to include google logo image for voice search.

BUG=342927
TBR=xiyuan@chromium.org, oshima@chromium.org
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250654 0039d316-1c4b-4281-b951-d872f2087c98
Adds support for DataPipe to .mojom

Definitions were missing in PackedField. Also adds a test for
coverage.

BUG=none
TEST=none
R=davemoore@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250655 0039d316-1c4b-4281-b951-d872f2087c98
Linux Aura: Notify the window manager when a new browser instance opens in an existing window.

BUG=326033
TEST=manual, see bug.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250656 0039d316-1c4b-4281-b951-d872f2087c98
Fix crash when running chrome --install-from-webstore

We were using an invisible dummy WebContents to decide where to parent the
confirmation dialog. This crashes under Aura.

BUG=334524
TEST=manual, "chrome --install-from-webstore=gplegfbjlmmehdoakndmohflojccocli" should not crash

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250657 0039d316-1c4b-4281-b951-d872f2087c98
Create a separate context so that skia & gl_helper don't step on each others toes.

BUG=333603

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250658 0039d316-1c4b-4281-b951-d872f2087c98
Promote chrome.app.window alwaysOnTop property to stable unwhitelisted

This patch promotes the feature to stable for all apps.

BUG=314260
TEST=browser_tests (PlatformAppBrowserTest.WindowsApiAlwaysOnTop*)
Test manually using Window State sample app. Ensure the feature is
enabled for beta and stable builds.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250659 0039d316-1c4b-4281-b951-d872f2087c98
Fix displaying of bookmark app dialog on Windows.

The dialog was being shown at ~150px width which is too small and wasn't
centered over the toolbar view. This CL sets the text field minimum width to
250 and the bubble's arrow to TOP_CENTER.

Although GetMinimumWidth is overridden, due to
crbug.com/342642, it isn't having the intended effect on
Windows.

BUG=331997

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250660 0039d316-1c4b-4281-b951-d872f2087c98
Rename VideoCaptureDeviceImpl -> ContentVideoCaptureDeviceCore

The class in question isn't an implementation for a generic VideoCaptureDevice;
it's used just as the core of tab/desktop capture devices.  Rename it to
reflect function.

BUG=269312
TEST=local build on ChromeOS Linux

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250661 0039d316-1c4b-4281-b951-d872f2087c98
Linux Aura: Fix missing system borders on KDE and other window managers.

When a window with system borders does not have a custom shape, its
XShape is set to null, rather than being set to a rectangle the size of
the window. Several window managers (including KDE, XFCE and XMonad)
refuse to put a native window border on a window with a custom shape.

BUG=338916

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250662 0039d316-1c4b-4281-b951-d872f2087c98
Add Google Cloud Storage support to the documentation AppEngine server using Cloud Storage official Python client library.

With this CL, URL paths can be directly mapped to Cloud Storage buckets (http://developer.chrome.com/path/... -> gs://bucket/...) using content_storage.json configuration file.

open-source-thrid-party-reviews@ team: this CL adds a third-party library to Chromium repo. The library will be used only in the documentation server and it is the official Google library to access Google Cloud Storage from a Google AppEngine application (docs server).

BUG=338007

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250663 0039d316-1c4b-4281-b951-d872f2087c98
cc: Only make num_threads - 1 SkPicture clones.

Run on-demand raster on worker threads. This allows us to create
one fewer SkPicture clone as raster will never be done on the
compositor thread.

BUG=333855
TEST=cc_unittests --gtest_filter=LayerTreeHostOnDemandRasterPixelTest.RasterPictureLayer

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250664 0039d316-1c4b-4281-b951-d872f2087c98
Make sticky keys overlay spacing dynamic based on the font size.

Revision 248131 deprecated constant font sizes and instead use predefined
font styles. We need to adjust the spacing to accomodate dynamic font sizes.

BUG=342537
TEST=visual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250665 0039d316-1c4b-4281-b951-d872f2087c98
Add the ability to show a demo app on OOBE if a machine is derelict.
If a machine has been idle for 8 hours+, we should start showing a demo app everytime the machine is idle for 5 minutes.
This CL depends on https://chrome-internal-review.googlesource.com/#/c/154276/

R=xiyuan@chromium.org, zelidrag@chromium.org
BUG=336585
TEST=Use the derelict-* flags to test demo mode app launching.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250666 0039d316-1c4b-4281-b951-d872f2087c98
Cast: Refactoring VideoReceiver to Clang format.

This cl is pure style-targeted refactoring. 
No functional changes were made. 

BUG=339176

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

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