Use the window's bounds if available instead of restore bounds for the initial size of the restored web contents.

BUG=378924

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283703 0039d316-1c4b-4281-b951-d872f2087c98
Fix permission issues with tools/accessibility/nvda/nvda_chrome_tests.py

TBR=dmazzoni@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283704 0039d316-1c4b-4281-b951-d872f2087c98
[SyncFS] Migrate version management from MDDB to index classes.

BUG=347425
TEST=./unit_tests --gtest_filter="MetadataDatabase*"

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283705 0039d316-1c4b-4281-b951-d872f2087c98
ozone: Port egl_demo on top of PlatformWindow

BUG=392280
TEST=built with chromeos==1 use_ozone==1 & ran with egltest platform

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283706 0039d316-1c4b-4281-b951-d872f2087c98
Kill renderers which try to register Service Workers across domains.

There is a same-origin check in
ServiceWorkerContainer::registerServiceWorker, so this code should
only be reachable if something has gone wrong.

BUG=394213

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283707 0039d316-1c4b-4281-b951-d872f2087c98
Move Start/StopTest to Run() instead.

The previous location of Start/StopTest isn't correct because it does
not encompass all calls to
AddSkip/AddSuccess/AddFailure/etc. Unfortunately, the new location 
means that test with discard_first_result will still execute
StartTest/StopTest. I think this is fine.

Also add Start/StopTest around the check for test.CanRunForPage(page)
for the same reason.

BUG=392901

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283708 0039d316-1c4b-4281-b951-d872f2087c98
Update and enable PPApiTest.URLLoaderTest3

The test was disabled[1] when XMLHttpRequest forbidden header names changed[2].
This CL updates and enables it.

1: https://src.chromium.org/viewvc/chrome?view=rev&revision=282507
2: https://src.chromium.org/viewvc/blink?view=rev&revision=178023

BUG=373120

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283709 0039d316-1c4b-4281-b951-d872f2087c98
GLHelper: validate destination size matches last scale size

In the GLHelper unittest the ValidateScalerStages function checks that
the scaling stages to be executed for the scale are valid.

This change also adds a check to ensure that the size of the destination
texture matches the destination size in the last stage of the scaler
pipeline.

This identified some of the test cases had small errors in the
destination sizes which didn't match the description of the scale. The
patch also corrects those.

TEST=content_gl_tests passes
BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283710 0039d316-1c4b-4281-b951-d872f2087c98
Add unit tests for drive::FileTaskExecutor.

The tests verify that FileTaskExecutor indeed performs the intended
interaction with the Drive file system and the remote server to obtain
an authenticated URL, and tries to open the link.

BUG=161209

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283711 0039d316-1c4b-4281-b951-d872f2087c98
Retry downloading rules for libaddressinput.

Retry downloading rules after 8, 16, 32, 64, 128, 256, and 512 seconds,
while requestAutocomplete dialog is open. (512 seconds is ~8.5 minutes.)

TEST=libaddressinput_unittests:FailingAddressValidatorTest.*
BUG=343397

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283712 0039d316-1c4b-4281-b951-d872f2087c98
Fold DecoderStream::Stop() into the dtor.

BUG=349211
TEST=Existing tests pass.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283713 0039d316-1c4b-4281-b951-d872f2087c98
Fix Spelling of DesktopDragDropClientAuraX11::X11DragContext::MaskOperation()

BUG=None
TEST=Peter is happy
TBR=erg

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283714 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl] Build fix for disable_nacl=1 desktop chrome build.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283715 0039d316-1c4b-4281-b951-d872f2087c98
Fixing memory leak in DistilledPagePrefs unittests

Bug was introduced in r283303.

BUG=383630

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283716 0039d316-1c4b-4281-b951-d872f2087c98
Add unit tests for DesktopMediaPickerViews.

iBUG=308426

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283717 0039d316-1c4b-4281-b951-d872f2087c98
Roll ASan/Win to 213197 to pick up LLVM r213151

This should fix ASan CHECK failures when a report happens after Chrome used DbgHelp once
BUG=394220,345874
TBR=rnk@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283718 0039d316-1c4b-4281-b951-d872f2087c98
Gallery: Random fixes for the Viewport class.

The CL do:

* Remove the device rect argument from paintDeviceRect because the rectangle can
be calculated from other arguments.

* Remove setByFrame(AndFit) helper functions that are used only once each to simplify
the Viewport class.

* Rename getScreenClipped with getImageBoundsOnScreenClipped. The old name
  sounds it retuns the bounds of screen.

* Add getImageElementBounds to obtain the bounds before applying zoom and
  offset.

BUG=245926
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283719 0039d316-1c4b-4281-b951-d872f2087c98
Change LSan suppressions from 'WebCore' to 'blink'.

TBR=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283720 0039d316-1c4b-4281-b951-d872f2087c98
Restrict relocation packing to Release build.

Pass CONFIGURATION_NAME as an argument to pack_arm_relocations.py, and
turn on packing only if its value is 'Release'.  (CONFIGURATION_NAME
cannot be used in conditionals because it is not resolved until after
the conditional has been processed.)

Prior art:
  https://code.google.com/p/chromium/codesearch#chromium/src/build/android/gyp/apk_obfuscate.py&l=103
  https://code.google.com/p/chromium/codesearch#chromium/src/build/java_apk.gypi&l=742

BUG=385553

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283721 0039d316-1c4b-4281-b951-d872f2087c98
Place OEM folder for new users after Web Store

It turns out that on some OEM devices the Files app is placed near the
end, so placing the OEM folder before the last non-removable app does
not have the desired result.

Instead, we place it after the WebStore, and assume that a pre-installed
app (e.g. Search) exists so that the app location is stable.

This was tested succesfully on an official build on one of the failing
devices. (I also confirmed that all of the existing defailt_app_order
files have the WebStore followed by Search early in the list).

BUG=chrome-os-partner:29764

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

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