Commit 392df422 authored by raymes's avatar raymes Committed by Commit bot

Remove media requesting code from StartPageService::StartPageWebContentsDelegate

It looks like this code was added for the old hotwording extension which
was removed. It's hard to tell how
MediaStreamDevicesController::ReqestPermission would be working from
this context if it was being used.

BUG=596786

Review-Url: https://codereview.chromium.org/2747943003
Cr-Commit-Position: refs/heads/master@{#457351}
parent ea14bb07
......@@ -159,21 +159,6 @@ class StartPageService::StartPageWebContentsDelegate
explicit StartPageWebContentsDelegate(Profile* profile) : profile_(profile) {}
~StartPageWebContentsDelegate() override {}
void RequestMediaAccessPermission(
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) override {
MediaStreamDevicesController::RequestPermissions(web_contents, request,
callback);
}
bool CheckMediaAccessPermission(content::WebContents* web_contents,
const GURL& security_origin,
content::MediaStreamType type) override {
return MediaCaptureDevicesDispatcher::GetInstance()
->CheckMediaAccessPermission(web_contents, security_origin, type);
}
void AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment