Set parcel data position to 0 when cloning the relro bundle.

Rename local variable from 'p' to 'parcel.  Call parcel.setDataPosition(0)
between write and read.  Fix a log message for punctuation.

Fixes (from logcat):
  E/Bundle  ( 5115): readBundle: bad magic number
  E/Bundle  ( 5115): readBundle: trace = java.lang.RuntimeException
  E/Bundle  ( 5115):      at android.os.Bundle.readFromParcelInner(Bundle.java:1677)
  E/Bundle  ( 5115):      at android.os.Bundle.readFromParcel(Bundle.java:1670)
  E/Bundle  ( 5115):      at org.chromium.base.library_loader.Linker.useSharedRelros(Linker.java:494)
  E/Bundle  ( 5115):      at org.chromium.content.app.ChildProcessService$1.setupConnection(ChildProcessService.java:100)
  E/Bundle  ( 5115):      at org.chromium.content.common.IChildProcessService$Stub.onTransact(IChildProcessService.java:57)
  E/Bundle  ( 5115):      at android.os.Binder.execTransact(Binder.java:388)
  E/Bundle  ( 5115):      at dalvik.system.NativeStart.run(Native Method)

BUG=388356

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282298 0039d316-1c4b-4281-b951-d872f2087c98
Make app list search result mixer more resilient to reordering.

To add more result display types to the app list search results, we plan to
have a large pool of results which will be filtered by display type.

As a displayed result may retain its display index but have a different model
index, it is necessary to handle reordering of the items in an in-place way to
avoid icon flickering.

The current implementation only avoids flickering when the result is in the
same model index which is unsuitable for our purposes.

BUG=349727

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282299 0039d316-1c4b-4281-b951-d872f2087c98
Added GetPDFPageSizeByIndex to expose FPDF_GetPageSizeByIndex. The function outputs the width and height, in points, of a given PDF document page.

BUG=388517

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282300 0039d316-1c4b-4281-b951-d872f2087c98
Skia roll 57ad493:da03653

https://skia.googlesource.com/skia/+log/57ad493789cb1a97574390b5ccf4fb9183ed3814..da03653f347e38a27e79b1dfb8c731bf9a184909

CQ_EXTRA_TRYBOTS=tryserver.chromium:linux_layout_rel
TBR=jcgregorio@google.com
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282302 0039d316-1c4b-4281-b951-d872f2087c98
[SyncFS] Add a test to SyncProcessRunner

BUG=344769
TEST=unit_tests --gtest_filter="SyncProcessRunnerTest.*"

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282303 0039d316-1c4b-4281-b951-d872f2087c98
Update network to use results.AddValue(...)
TBR=nduca@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282304 0039d316-1c4b-4281-b951-d872f2087c98
[SyncFS] Implement methods to handle TrackerIDSet by FileID
Most methods simulate TrackerIDSet structure on LevelDB entries.
GetTrackerIDSetByPrefix() builds up a real TrackerIDSet to
get gathered information.



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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282305 0039d316-1c4b-4281-b951-d872f2087c98
Remove deprecated RenderArena object and fix stack source path.
    
RenderArena object is deprecated in WebCore.
And WebCore path has been changed from WebCore to core.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282306 0039d316-1c4b-4281-b951-d872f2087c98
Map WebSocket URL schemes to HTTP URL schemes for auth purposes.

This permits WebSocket connections to inherit credentials from HTTP pages, and
matches the behaviour of other browsers.

Design doc: https://docs.google.com/a/chromium.org/document/d/129rLtf5x3hvhP5rayLiSxnEjOXS8Z7EnLJgBL4CdwjI/edit

Also consider any 401 or 407 results that reach the WebSocketStream
URLRequest::Delegate to be unrecoverable errors.

Also ensure that the response headers are reported back to the renderer
when the developer tools are open and a 401 error happens.

BUG=123862

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282307 0039d316-1c4b-4281-b951-d872f2087c98
RenderText: Allow setting display offset explicitly

Currently, display offset for a gfx::RenderText is computed
automatically to ensure the cursor is always visible. This CL adds the
ability to set display offset explicitly which, as an example, can be
useful in adding touch scrolling to textfields. Display offset set this
way is not permanent and will be recalculated next time a property
(text, font, alignment, etc.) is changed.

BUG=388862

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282308 0039d316-1c4b-4281-b951-d872f2087c98
Temporary disables 2 tests in service_worker_browsertest.cc.

These tests will be broken by the blink side change which removes HeaderMap and introduces Headers class.
https://codereview.chromium.org/373613004/

After the blink side change will land, I will re-enable the tests.

BUG=373120

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282309 0039d316-1c4b-4281-b951-d872f2087c98
PasswordForm: move from current/old password scheme to current/new.

With the old approach (storing the current and old passwords for a form), we could not tell apart login forms from sign-up forms and change password forms that did not have a password confirmation field.

Furthermore, the new approach align more nicely with the new-password and current-password scheme we use for the autocomplete attributes.

BUG=375333

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282310 0039d316-1c4b-4281-b951-d872f2087c98
Updated WebRTC legacy test to not force the GICE ufrag and pwd.

These should be generated by the browser instead. I considered
verifying the generated credentials but I think that's better done in
a different test.

R=bemasc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282311 0039d316-1c4b-4281-b951-d872f2087c98
Ephemeral apps should not appear in ChromeOS file manager menus

Ephemeral apps should not be used to open files via the ChromeOS file
manager as they are not permanently installed.

BUG=391145
TEST=unit_tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282312 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 177792:177811

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=177793:177811&mode=html
TBR=yutak@chromium.org,junov@chromium.org
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282314 0039d316-1c4b-4281-b951-d872f2087c98
Re-submit of https://codereview.chromium.org/356613002

> Add function queryForNewLocalDevices to send query for new local devices,
> implement it for mDNS (WiFi devices forthcoming)
>
> BUG=383167
>
> Review URL: https://codereview.chromium.org/356613002

TBR=noamsml@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282315 0039d316-1c4b-4281-b951-d872f2087c98
cc: skipping a horizontal sort by checking the value of vertical_density

When vertical_density is 1,
the value of horizontal_density from do_clustering() should be equal to 1.
Thus, it skips the horizontal sort process in this case.

When I checked logs in google.com and www.naver.com, 
this condition (vertical_density equals to 1) is met 
for more than 70% of cases.

BUG=312861

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282317 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Eliminate SyncDispatcher in favor of WaitForIncomingMethodCall

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

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