Regenerate the long-lived test certificates to use SHA-256

BUG=401365
TBR=mattm

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

Cr-Commit-Position: refs/heads/master@{#297061}
(cherry picked from commit 80daaf71e46826d627cbf97fe28ce50ceb46a827)

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

Cr-Commit-Position: refs/branch-heads/2171@{#20}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Detect SHA-1 when it appears in certificate chains

BUG=401365
TBR=davidben

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

Cr-Commit-Position: refs/heads/master@{#297307}
(cherry picked from commit b92e6f5c2a5271850a39afa1254d41ccc34ec5e6)

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

Cr-Commit-Position: refs/branch-heads/2171@{#21}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Mark SHA-1 as deprecated

BUG=401365
TBR=davidben
Review URL: https://codereview.chromium.org/508823009

Cr-Commit-Position: refs/heads/master@{#297331}
(cherry picked from commit 4f80127285b5be9265ad96ce9b118e414107815a)

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

Cr-Commit-Position: refs/branch-heads/2171@{#22}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Create a cache file before mounting zip file.

Previusly JavaScript send a request to create a cache file before mounting zip
file, but the code was recently removed.  This CL adds lines to create a cache
to the API for mouting a zip file.

BUG=419285
TEST=repro steps on the bug
TBR=kinaba

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

Cr-Commit-Position: refs/heads/master@{#297622}
(cherry picked from commit cf841063b6b7cfbfb40945a75a72e592b3fe6169)

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

Cr-Commit-Position: refs/branch-heads/2171@{#23}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Add kEnableWebRtcHWVp8Encoding to GPU process.

VideoEncodeAccelerator::GetSupportedProfiles now runs in GPU
process because the profiles were added to GPUInfo. Add
kEnableWebRtcHWVp8Encoding to GPU process to fix the missing
encode profile.

BUG=418762
TEST=Run apprtc loopback and check the histogram.
TBR=posciak@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297445}
(cherry picked from commit ebd596bdd2b8ec66884d7f3a41a7f171cd11bf2c)

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

Cr-Commit-Position: refs/branch-heads/2171@{#24}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Don't report VAAPI failures for UMA for platforms that don't support it.

On startup, VaapiWrapper::GetSupportedEncodeProfiles is
called to query HW encoder capabilities to fill GpuInfo
with. On VM test however there is no libva present, so we
error out, but also attempt to report an error to UMA,
which blocks and the GPU process gets killed by the GPU
watchdog.

We don't need to report failures on GetSupportedEncodeProfiles
however, as we will report them later when we attempt
to encode anyway.

BUG=402182
TEST=test lumpy under kvm and check chrome is not blocked by
GetSupportedEncodeProfiles
TBR=posciak@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297564}
(cherry picked from commit 4505d0f3dc0bd9b96db7275f0ae33b7f841ebaf1)

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

Cr-Commit-Position: refs/branch-heads/2171@{#25}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Revert "UMA: How often are different network error screens encountered during OOBE"

This reverts commit f406302bb6e9ab6a533d3ac39c39b39705d7d422.

BUG=365354
TBR=rsorokin@chromium.org

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

Cr-Commit-Position: refs/branch-heads/2171@{#26}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Merge "Fix ZoomController crash on kiosk launching."
>
> BUG=418214
>
> Review URL: https://codereview.chromium.org/609983002
>
> Cr-Commit-Position: refs/heads/master@{#297094}
> (cherry picked from commit 2a49d598998386086b0f542fae378fe91bd1904a)

TBR=xiyuan@chromium.org

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

Cr-Commit-Position: refs/branch-heads/2171@{#27}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
[Merge] User Person/People instead of User/Users everywhere profile related.

Previously we were only doing this if the --new-avatar-menu was flipped.
This is a two-part CL. This CL removes the usages of the strings, but not
the strings themselves, since that involves some renaming and I'd like
to merge this to M39.

The CL that actually removes the unused strings is:
https://codereview.chromium.org/603023004/

XIB changes: use a different string ID for the profiles menu in the menu bar.
BUG=405988
TBR=noms@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297222}
(cherry picked from commit 7252caf5868751e1f9036484b5741e85a19318a9)

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

Cr-Commit-Position: refs/branch-heads/2171@{#28}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
[Merge] Remove unused User/Users strings from the profiles UI

The strings stopped being used in https://codereview.chromium.org/611033002/

XIB changes: use a different string ID for the profiles menu in the menu bar.

BUG=405988
TBR=noms@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297422}

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

Cr-Commit-Position: refs/branch-heads/2171@{#29}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Merge to branch 2171 [Password Generation] Fix a bug where we always upload ACCOUNT_CREATION_PASSWORD

Update test to catch the problem. Previous test mocked out
bad behavior.

BUG=419228
R=isherman@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297580}
(cherry picked from commit 44c5e4ebc358b6e804ae7af97fd240ca5682743f)

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

Cr-Commit-Position: refs/branch-heads/2171@{#30}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
When switching the visible uber frame, also switch focus.

BUG=414595
TBR=estade@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297238}
(cherry picked from commit 5df63fb842aac0b01a62dd28e4e57473e92bc184)

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

Cr-Commit-Position: refs/branch-heads/2171@{#31}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
MediaGalleriesCustomBindings: Ensure blobs aren't GC'd when getMetadata runs.

BUG=415792

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

Cr-Commit-Position: refs/heads/master@{#297444}
(cherry picked from commit ca5a56f98d44564885036e571b10562c61973771)

R=orenb@chromium.org

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

Cr-Commit-Position: refs/branch-heads/2171@{#32}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Merge: Fix size and position of the virtual keyboard after a screen rotation.

BUG=417612
TEST=VirtualKeyboardRootWindowControllerTest.DisplayRotation
TBR=kevers@chromium.org,jamescook@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297430}
(cherry picked from commit 0e450495d30494943c2773c108b9234a00272a94)

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

Cr-Commit-Position: refs/branch-heads/2171@{#33}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Revert "Remove deprecated extension notification from AppWindow"

This reverts commit 49c3dc90ca4f5babf3d2e14f93540a848869984e.

Conflicts:
	extensions/browser/app_window/app_window.cc

BUG=419375
TBR=limasdf@gmail.com,amineer@chromium.org

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

Cr-Commit-Position: refs/branch-heads/2171@{#34}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Fix UMA stat for expiration of certificate memory decisions

In our certificate memory decisions experiment, an UMA stat has been
incorrectly recording when a decision is made after expiration for users
in the "forget decisions at session end" group. As a fix, this CL adds a
GUID to represent the current browsing session to the
ChromeSSLHostStateDelegate and records that identifier whenever a
decision is made. Then, in a future session, Chrome can tell if the
decision has expired if the GUID doesn't match the current session's
GUID.

A good question to ask might be, "why use a GUID to represent the
browsing session rather than simply iterating over all the current
entries and marking them as expired?" Well, I'm glad you asked!
Unfortunately, content settings does not allow one to iterate over the
values of *compound* content settings; it only works for simply content
settings, which certificate decisions most certainly are not. While this
could be added, it would be a fair amount work for what amounts to a
temporary problem, as this will all go away once the experiment is
finished.

BUG=418631

TBR=felt@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297671}
(cherry picked from commit a040213b7020119ffe8f434ad948fe6adb37f1dc)

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

Cr-Commit-Position: refs/branch-heads/2171@{#35}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Add a getSelectedText method to the PDF plugin.

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

Cr-Commit-Position: refs/heads/master@{#297649}
(cherry picked from commit 7c23f3fc46a1e368780b2b6d7e0e2b183d3645d8)

BUG=419427

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

Cr-Commit-Position: refs/branch-heads/2171@{#36}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Incrementing VERSION to 39.0.2171.8

Cr-Commit-Position: refs/branch-heads/2171@{#37}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Android Chromoting: Don't fetch auth token if there's a fetch pending.

Currently, the host list is fetched from the main activity's onStart()
handler. If onStart() is triggered again during the process of
authentication, this could cause an infinite loop of pending requests.

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

Cr-Commit-Position: refs/heads/master@{#297088}
(cherry picked from commit f1318ecbfff840702b08eab40d744dc55670610d)

BUG=419602

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

Cr-Commit-Position: refs/branch-heads/2171@{#38}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}
Fix refreshing the volume list when the volume is unmounted.

When a volume is unmounted, while it was selected, then the list model is
updated, and since there is no selection anymore, the current entry from the
directory model is selected. However, the corresponding VolumeInfo is gone
so we can't call resolveRootEntry().

This patch adds a check. If the volume is gone, then the selection is aborted.

TEST=Tested manually with FSP.
BUG=418513
TBR=mtomasz@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297188}
(cherry picked from commit 4b84385dafb109ba1cd8e2f78366d3585ddbe059)

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

Cr-Commit-Position: refs/branch-heads/2171@{#39}
Cr-Branched-From: 267aeeb8d85c8503a7fd12bd14654b8ea78d3974-refs/heads/master@{#297060}