Observe cros-disks FormatCompleted signal instead of FormattingFinished.

The FormattingFinished signal has been long deprecated (back in 2011)
and replaced by the FormatCompleted signal, which allows cros-disks to
properly notify Chrome the completion of a format operation with an
appropriate error code. This CL modifies CrosDisksClient and
DiskMountManager to use the FormatCompleted signal.

BUG=369877
TEST=Tested the following:
1. Run chromeos_unittests.
2. Insert a USB drive and format the mounted partition via Files.app.
   Verify that Files.app notifies the successful completion of the
   format operation.
3. Insert a write-protected SD card and format the mounted partition via
   Files.app. Verify that Files.app reports an error.

R=stevenjb@chromium.org, tbarzic@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268398 0039d316-1c4b-4281-b951-d872f2087c98
Added UMA histograms for tracking desktop vs. mobile site page loads.

Added two histograms. One records the type and details of a viewport
specification on the page. The second is recorded in the case of a
fixed-width viewport meta tag. It records the percentage zoom that
is required to fully see the page on the device's screen.

Associated Blink patch: https://codereview.chromium.org/216183004/

BUG=329697

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268399 0039d316-1c4b-4281-b951-d872f2087c98
[GCM] Removing dependency between GServicesSettings and GCMStore

* Removing GCMStore from GServicesSettings
* Moving the settings writing to the store to the GCMClientImpl
* Adding capability to get settings in a string->string map
* Adding tests for the write case, and pulling the settings in a map

R=zea@chromium.org,jianli@chromium.org
BUG=359256

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268400 0039d316-1c4b-4281-b951-d872f2087c98
Fix AudioBuffer verification tests.

The previous tests were not properly accounting for the removed
segments in the AudioBus.  The offset specified was not taken
into consideration when determing the iteration end point.

BUG=none
TEST=manual inspection of tests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268401 0039d316-1c4b-4281-b951-d872f2087c98
The set_enforce_errors_from_incoming_receiver() method is needed for testing
only. It allows fuzzing tests to continue to execute after the first error is
encountered on a connector.

R=darin@chromium.org
BUG=366797

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268402 0039d316-1c4b-4281-b951-d872f2087c98
Make sure that ScratchBuffer::Allocate() always return 8-byte aligned addresses.

BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268405 0039d316-1c4b-4281-b951-d872f2087c98
Support subpixel values in DOMUtils.java getNodeBounds

Change the getNodeBounds method in DOMUtils.java to support subpixel
values (by rounding to full pixels for now) in preparation for moving
blink to return values with subpixel precision for offsetWidth and
friends.

The C++ testing code was similarly updated in r267693.

R=nyquist@chromium.org
BUG=360889

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268407 0039d316-1c4b-4281-b951-d872f2087c98
Fixing "black flash" when going into maximized mode.

BUG=visible

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268408 0039d316-1c4b-4281-b951-d872f2087c98
Assume the foo_test_run depends on everything needed to run the test.

It previously assumed foo_test was the target to process. This doesn't work in
cases where there is no foo_test target defined.

R=kbr@chromium.org
BUG=368543

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268409 0039d316-1c4b-4281-b951-d872f2087c98
[New Tab Page] Minor changes to the thumbnail code.

For lack of better improvements to the code, here's a few tweaks. I put the logging statements after the important stuff and used className instead of classList because according to my own little benchmarking it's slightly better:

http://jsperf.com/classname-vs-classlist-simple

Image() vs. document.createElement('img'): http://jsperf.com/image-instantiation-la

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268410 0039d316-1c4b-4281-b951-d872f2087c98
[Password Generation] Update suggested text.

Explicitly mentiont that this password is coming from Chrome.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268411 0039d316-1c4b-4281-b951-d872f2087c98
Don't generate splices unless the overlap is at least 2 samples.

Can't crossfade without at least 2 frames! This should also help resolve
the number of erroneous splices created, since many of the 1 frame splices
seem to be due to inaccurate durations rather than legit splices.

BUG=356073,369204
TEST=new unittest.
NOTRY=true
R=acolwell@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268413 0039d316-1c4b-4281-b951-d872f2087c98
Fix typo, "recieve" -> "receive", in google_apis/

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268414 0039d316-1c4b-4281-b951-d872f2087c98
Check for invalid chunk sizes in WAVEDecoder.

When reading a chunk from a WAVE file, make sure the specified chunk
size is sensible. That is, the chunk size isn't greater than the size
of the file.

BUG=369760

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268416 0039d316-1c4b-4281-b951-d872f2087c98
Fixed Linux build with glib 2.40 (Ubuntu 14.04).

In proxy_config_service_linux, disabled glib deprecation warnings. The
function g_settings_list_schemas got deprecated in 2.40, but its
replacement is not available in older glib versions (such as the one the
build bots currently use, 2.32), so for now, disable the warnings.

BUG=351911

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268417 0039d316-1c4b-4281-b951-d872f2087c98
docserver: fix externally_connectable reference

BUG=370285
R=kalman
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268418 0039d316-1c4b-4281-b951-d872f2087c98
Add GN targets for third_party/libjpeg_turbo

R=brettw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268421 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Add POSIX utils for sending FDs (across a "platform channel pair").

R=yzshen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268422 0039d316-1c4b-4281-b951-d872f2087c98
Update ash_resources to use grit_target.gypi.

This is just a small cleanup while I'm here and for being consistent
with other files of the same nature.

BUG=None
TEST=ash_shell
R=jamescook@chromium.org
TBR=thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268423 0039d316-1c4b-4281-b951-d872f2087c98
Valgrind: Suppress a leak in v8::internal::Parser::ParseProgram().

BUG=370327
NOTRY=true
TBR=timurrrr@chromium.org

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

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