Move the chromeHidden.toJSON paranoia out of event.js and into json.js, a new
and much smaller file. Having it in event.js means the heavyweight Event class
needs to be eagerly required on extension startup. Now, only json.js does.

R=koz@chromium.org
TBR=ben@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12287011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183365 0039d316-1c4b-4281-b951-d872f2087c98
WebKit roll 143310 -> 143340

TBR=toyoshim@chromium.org
BUG=none


Review URL: https://chromiumcodereview.appspot.com/12255077

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183366 0039d316-1c4b-4281-b951-d872f2087c98
Re-enable some network tests that have been disabled for
over a year due to failures with Chrome Frame.  Keep them
disabled for Chrome Frame tests.

Also disable two of them on Android.

BUG=102991
Review URL: https://codereview.chromium.org/12042058

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183367 0039d316-1c4b-4281-b951-d872f2087c98
Revert 183320
> Windows: Collect D3D11 capability statistics after a 10 seconds delay.
> 
> This is to see if dlumd32.dll is hooking D3D11.dll while we are using it and if delaying our use of it prevents the crash in the referenced bug.
> 
> BUG=175525
> 
> Review URL: https://chromiumcodereview.appspot.com/12259035

TBR=apatrick@chromium.org
Review URL: https://codereview.chromium.org/12308016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183368 0039d316-1c4b-4281-b951-d872f2087c98
Support panel titles and Icons for v1 apps
Also don't minimize when clicking on titlebar


BUG=160645


Review URL: https://chromiumcodereview.appspot.com/12212207

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183369 0039d316-1c4b-4281-b951-d872f2087c98
[Coverity] Fix uninitailized scalar fields in ProfileIOData.

CID=105082
BUG=none
TEST=none


Review URL: https://chromiumcodereview.appspot.com/12296040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183370 0039d316-1c4b-4281-b951-d872f2087c98
cc: Don't consider HUD layer for touches

When paint rects are drawn, the HeadsUpDisplayLayerImpl is created
and drawn. However, this causes scrolling touches not to hit the
layer underneath, thus preventing the user from scrolling. The fix
is to classify the layer as a non-interactive overlay layer and
to not consider these layers as possible hit layers.

BUG=172572
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/12280014

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183372 0039d316-1c4b-4281-b951-d872f2087c98
[Instant] Fixes several cases of search terms extraction.

Removes the virtual URL hack in favor of ExtraData on NavigationEntry.

BUG=159326, 153477, 167067
TEST=InstantExtendedTest


Review URL: https://chromiumcodereview.appspot.com/12179025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183374 0039d316-1c4b-4281-b951-d872f2087c98
Created unit test for PrinterJobHandler

Created file printer_job_handler_unittest.cc containing unit test for PrinterJobHandler
and fixtures that will allow the building of more sophisticated unit tests in the future.
Currently, the test only tests end-to-end printing of a single job with no errors, but
facilities exist in the unit test code to write more sophisticated tests in the future.

BUG=176361

Review URL: https://chromiumcodereview.appspot.com/12248009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183376 0039d316-1c4b-4281-b951-d872f2087c98
requestAutocomplete: add CVC hint icon resource

BUG=none
TBR=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183377 0039d316-1c4b-4281-b951-d872f2087c98
This patch changes participation condition of bookmark prompt experiment to:
- 1% of new users on Beta/Dev channel, users who create profile after Feb 25(M25) or Mar 1(M26).
- Until Mar 28(M25) or Apr 1(M26)
rather than using variations service.

Checking new user, aka new installation, is as same as
https://chromiumcodereview.appspot.com/11363062

BUG=176428

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

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

This test is flaky. See bug for more info.

BUG=177140
TBR= vasilii

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

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

http://build.chromium.org/f/chromium/perf/xp-release-dual-core/moz/report.html?history=150&rev=183019&graph=ws_peak_b
-> Rebaseline, XP only and only a slight shift. No obvious culprit.

BUG=None
TBR=cmp

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183381 0039d316-1c4b-4281-b951-d872f2087c98
Add a ResourceScheduler to ResourceDispatcherHost.

For this CL, ResourceScheduler mimicks WebKit's ResourceLoadScheduler. That means only JS and CSS are loaded before first paint.

Eventually, we will improve it to do things like:
- Lower priority of background tabs.
- Preconnect for low priority resources.
- Dynamically adapt scheduling to the user's connection.
- Experiment with other scheduling ideas.

BUG=157763


Review URL: https://chromiumcodereview.appspot.com/11270027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183382 0039d316-1c4b-4281-b951-d872f2087c98
Fix crash if there's no ActivationClient set.
Review URL: https://codereview.chromium.org/12310004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183383 0039d316-1c4b-4281-b951-d872f2087c98
Hide text handles when scrolling/zooming

Hide the text handles when initiating a scroll or zoom or when the
scroll offsets/page scale are updated. The handles will fade in shortly
after movement/scroll/zoom ends.

Also, we no longer need to hide the handles on rotate.

NOTRY=true

BUG=176265,174665,135759


Review URL: https://chromiumcodereview.appspot.com/12271012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183384 0039d316-1c4b-4281-b951-d872f2087c98
cc: Compute the inflated rect to cover a fixed number of tiles.

Currently we expand the area around the viewport in which we want to
paint tiles by a fixed amount in all 4 directions. For narrow pages,
this was designed to work well since it will expand and add a "linear"
number of pixels (relative to the width of the viewport). However,
when pinch-zoomed in, or on a wide page, the rect is expanded far
in all directions and so expands to include a quadratic number of
pixels. This creates inconsistent behaviour, and we include too many
tiles in the rect in the latter case, in order to get enough tiles in
the former case.

Instead of expanding the rect in all 4 directions by a very large amount,
we expand the rect to fill a given area, or to cover a given number of
pixels. This way we always include roughly the same number of tiles in the
rect. We expand the rect out in all 4 directions equally to cover the
target area. However, if the rect bumps into the edge of the tiling's
content rect, then we will continue to expand the rect equally along its
other edges until the rect covers the target number of pixels or completely
fills the content rect.

Tests:
PictureLayerTilingTest.ExpandRectEqual
PictureLayerTilingTest.ExpandRectSmaller
PictureLayerTilingTest.ExpandRectUnbounded
PictureLayerTilingTest.ExpandRectBoundedSmaller
PictureLayerTilingTest.ExpandRectBoundedEqual
PictureLayerTilingTest.ExpandRectBoundedSmallerStretchVertical
PictureLayerTilingTest.ExpandRectBoundedEqualStretchVertical
PictureLayerTilingTest.ExpandRectBoundedSmallerStretchHorizontal
PictureLayerTilingTest.ExpandRectBoundedEqualStretchHorizontal
PictureLayerTilingTest.ExpandRectBoundedLeft
PictureLayerTilingTest.ExpandRectBoundedRight
PictureLayerTilingTest.ExpandRectBoundedTop
PictureLayerTilingTest.ExpandRectBoundedBottom
PictureLayerTilingTest.ExpandRectSquishedHorizontally
PictureLayerTilingTest.ExpandRectSquishedVertically

BUG=176580
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12287027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183385 0039d316-1c4b-4281-b951-d872f2087c98
[Coverity] Fix uninitialized scalar fields in RenderViewImpl.

CID=108108
BUG=none
TEST=none


Review URL: https://chromiumcodereview.appspot.com/12288063

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183387 0039d316-1c4b-4281-b951-d872f2087c98
List innocent header files in the source list of browser_ui_views library.

chrome_views_export.h is missing from when chrome_browser_ui_views.gyp were
created, the other two doesn't have any dependency so we can list them without
any problems.

BUG=125846
TBR=ben@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12303031

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