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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.cc

Issue 1153813003: Add user_gesture param to WebContentsDelegate::ActivateContents Base URL: https://chromium.googlesource.com/chromium/src.git@ug1_WebContentsImpl_Activate
Patch Set: Update callers Created 5 years, 7 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 | « chrome/browser/devtools/devtools_window.cc ('k') | chrome/browser/printing/background_printing_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_stream_capture_indicator.cc
diff --git a/chrome/browser/media/media_stream_capture_indicator.cc b/chrome/browser/media/media_stream_capture_indicator.cc
index 978e0e8ff849b2ab4e9bf4f6de1937707d9094bf..3f3b3c2efda9b4c6c1daef43ddaf0eaf6d205e4c 100644
--- a/chrome/browser/media/media_stream_capture_indicator.cc
+++ b/chrome/browser/media/media_stream_capture_indicator.cc
@@ -296,7 +296,8 @@ void MediaStreamCaptureIndicator::ExecuteCommand(int command_id,
DCHECK_GT(static_cast<int>(command_targets_.size()), index);
WebContents* web_contents = command_targets_[index];
if (ContainsKey(usage_map_, web_contents))
- web_contents->GetDelegate()->ActivateContents(web_contents);
+ web_contents->GetDelegate()->ActivateContents(web_contents,
+ true /* user_gesture */);
}
bool MediaStreamCaptureIndicator::IsCapturingUserMedia(
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | chrome/browser/printing/background_printing_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698