Commit 14cdb56a authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Allow Desktop Capture API from incognito tabs.

Previously Desktop Capture API allowed requests only from non-incognitor
tabs. The API might be useful in incognito tabs in some scenarios.

R=joi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243706 0039d316-1c4b-4281-b951-d872f2087c98
parent 47feb3a3
...@@ -100,13 +100,8 @@ bool DesktopCaptureChooseDesktopMediaFunction::RunImpl() { ...@@ -100,13 +100,8 @@ bool DesktopCaptureChooseDesktopMediaFunction::RunImpl() {
} }
content::WebContents* web_contents = NULL; content::WebContents* web_contents = NULL;
if (!ExtensionTabUtil::GetTabById(*(params->target_tab->id), if (!ExtensionTabUtil::GetTabById(*(params->target_tab->id), GetProfile(),
GetProfile(), true, NULL, NULL, &web_contents, NULL)) {
false,
NULL,
NULL,
&web_contents,
NULL)) {
error_ = kInvalidTabIdError; error_ = kInvalidTabIdError;
return false; return false;
} }
......
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