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
Inform the OOP PDF plugin when it is running in the top level window

This passes an argument to the OOP PDF plugin informing it when it is
running in a top level window so that it can behave appropriately.

BUG=303491

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268425 0039d316-1c4b-4281-b951-d872f2087c98
Add timelineOffset() support to WebMediaPlayerAndroid.

Adding minimal timelineOffset() support to Android so Blink can report
this information via HTMLMediaElement.getStartDate() for MSE playbacks.

BUG=312699
TESTS=Will be covered by the getStartDate() LayoutTests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268426 0039d316-1c4b-4281-b951-d872f2087c98
Fix images drawn with the NineImagePainter class in high DPI.

This class is used for drawing custom buttons/scrollbars, etc. On Windows high DPI for
fractional scale factors like 1.25/1.5, etc these images appear distorted due to pixel loss
occuring while drawing. The loss happens due to the following reasons.

1. The class uses two different flavors of the Canvas::DrawImageInt function to draw. One flavor
   is invoked via a local helper called Fill and the other one is used to draw some images.
   The latter causes painting problems for fractional scales as it rounds differently via the
   skia helper SkScalarRoundToInt which internally ends up adding 0.5 to the value being ceiled
   and ceils it at times.

2. The NineImagePainter class uses ImageSkiaStorage.width and height to get the DIP width and height
   respectively. These methods divide the pixel width/height by the scale factor and return the
   floored results. This causes pixel loss. E.g. pixel width/height 8 and scale favtor 1.5.
   These methods return 5 (5.33 rounded to 5). This causes pixel loss eventually.

3. The bounds of the rect being painted to which is passed into the paint function contain width/height
   values which when scaled cause rounding problems. 

Fixes for the above issues are as below:-
1. Added a new function DrawImageIntInPixel to the gfx::Canvas class. This function ensures that the 
   underlying SkCanvas does not scale. It translates the destination rectangle to ensure that the image is 
   displayed at the desired location.

2. Changed the drawing code in the NineImagePainter class to pass in pixel locations/width/height etc for drawing.

BUG=367543

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268429 0039d316-1c4b-4281-b951-d872f2087c98
Sanitize the component updater files by running git cl format.

This is the second part of a series of changes to fix style violations in
the component updater code.

BUG=369311
TBR=jvoung

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268430 0039d316-1c4b-4281-b951-d872f2087c98
Add WorkerScriptLoaded message to support attaching DevTools while starting ServiceWorker.

EmbeddedWorkerHostMsg_WorkerStarted is sent after the worker script has been evaluated.
But if the break point is set in the top-level script, the worker thread is blocked and the message will not be sent.

To let the browser process know that the script has been loaded and the worker thread has started, the renderer process need to send EmbeddedWorkerHostMsg_WorkerScriptLoaded.

BUG=358657

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268431 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Accept extensions in .zip format

BUG=chromedriver:776
TEST=chrome/test/chromedriver/test/run_py_tests.py --chromedriver=out/Release/chromedriver --filter=*ChromeExtensionsCapability*
(after building chromedriver: ninja -C out/Release chromedriver)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268432 0039d316-1c4b-4281-b951-d872f2087c98
Implement manifest parsing for Automation permissions.

Nothing is wired up yet other than checking for automation permission in general, but the parsing all works, so it's just a matter of enforcing these permissions going forward.

BUG=309681

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

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