Switch media stream permissions to use IsOriginSecure() instead of
SchemeIsSecure().

In particular, note that this means that media permissions are persisted on http://localhost.

The change also updates the old media stream permission tests (which
were no longer testing anything meaningful).

BUG=295723, 362214, 509844

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

Cr-Commit-Position: refs/heads/master@{#342458}
7 files changed