[telemetry] Remove set_startup_url action and make it an attribute of page.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256898 0039d316-1c4b-4281-b951-d872f2087c98
Refactor DoReadHeadersComplete error-handling.

There were invariants that are not very obvious from the control flow and some
now unnecessary codepaths.

Remove HandleConnectionClosedBeforeEndOfHeaders. the conversion to
ERR_EMPTY_RESPONSE is since handled handled by HttpStreamParser, evidenced by
HttpNetworkTransactionTest.NonKeepAliveConnectionEOF continuing to pass. Note
that, in case of some unexpected regression, this will no longer happen in
the SPDY case.

This allows us to only treat ERR_CONNECTION_CLOSED special in the case there
are partial headers. This makes it clearer why DCHECK(response_.headers.get())
is valid.

As a bonus, by falling back to HandleIOError's call to ShouldResendRequest, the
HTTP_TRANSACTION_RESTART_AFTER_ERROR logging happens. (That said, all such
cases in HTTP/1.1 get converted to ERR_EMPTY_RESPONSE. That'll be fixed
separately.)

BUG=352156

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256899 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256898
Fix test breakage/flakyness in ScreenOrientationIntegrationTest

The test was assuming that the device orientation was 0 and the tests
would not work well with an orientation of 90.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256900 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256900