Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc

Issue 126433003: Allow Desktop Capture API from incognito tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
diff --git a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
index 9cdf32d6c2385db83ce45b0b50f5de7181d404a2..c0502193ebcdecff2902873f0f184addd5155287 100644
--- a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
+++ b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
@@ -100,13 +100,8 @@ bool DesktopCaptureChooseDesktopMediaFunction::RunImpl() {
}
content::WebContents* web_contents = NULL;
- if (!ExtensionTabUtil::GetTabById(*(params->target_tab->id),
- GetProfile(),
- false,
- NULL,
- NULL,
- &web_contents,
- NULL)) {
+ if (!ExtensionTabUtil::GetTabById(*(params->target_tab->id), GetProfile(),
+ true, NULL, NULL, &web_contents, NULL)) {
error_ = kInvalidTabIdError;
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698