Move ChromeOS login media access logic into a MediaAccessHandler
Currently the ChromeOS login screen media access logic is handled as a part of
the PermissionBubbleMediaAccessHandler. However its permission handling logic
is totally different to how permission requests are handled for drive-by pages.
This moves the logic into its own MediaAccessHandler. Some code is shared with
the ExtensionMediaAccessHandler. WebUILoginView::RequestMediaAccessPermission
is changed to go through the MediaCaptureDevicesDispatcher which matches the
codepath for other media permission requests.
BUG=596786
Review-Url: https://codereview.chromium.org/2746873004
Cr-Commit-Position: refs/heads/master@{#463454}
22 files changed