Switch media stream permissions to use IsOriginSecure() instead of SchemeIsSecure().
commit64d923cbb60f7ac1d7d21e63224b8120bd323f1c
authorlgarron <lgarron@chromium.org>
Thu, 13 Aug 2015 21:28:22 +0000 (13 14:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 13 Aug 2015 21:28:57 +0000 (13 21:28 +0000)
tree4e20dc2946b6f896d42fdfdb5cd64e087e9a855c
parent42aa017bfdf37b56605343897db81df7167f11a1
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).

(This is a reland of https://codereview.chromium.org/1276373004/ with a fixed
test, after it was reverted in https://codereview.chromium.org/1276373004/ )

BUG=295723, 362214, 509844

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

Cr-Commit-Position: refs/heads/master@{#343276}
chrome/browser/media/chrome_media_stream_infobar_browsertest.cc
chrome/browser/media/chrome_webrtc_webcam_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