Switch media stream permissions to use IsOriginSecure() instead of
commit2249c80e8c4b50793a8261c4f9eb3f879ddf4aff
authorlgarron <lgarron@chromium.org>
Fri, 7 Aug 2015 22:18:35 +0000 (7 15:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 22:19:17 +0000 (7 22:19 +0000)
tree150a05012999f7090d4b346c3e886ff9dc678b48
parent590132073e49fbc0655efa243938b68c357f6e55
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}
chrome/browser/media/chrome_media_stream_infobar_browsertest.cc
chrome/browser/media/desktop_capture_access_handler.cc
chrome/browser/media/media_stream_device_permissions.cc
chrome/browser/media/media_stream_devices_controller.cc
chrome/browser/media/media_stream_infobar_delegate.cc
chrome/browser/media/webrtc_browsertest_base.cc
chrome/browser/media/webrtc_browsertest_base.h