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

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

Issue 1169143003: Add initial support for runtime permissions in android M. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
Patch Set: Created 5 years, 6 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
Index: chrome/browser/media/media_stream_infobar_delegate.cc
diff --git a/chrome/browser/media/media_stream_infobar_delegate.cc b/chrome/browser/media/media_stream_infobar_delegate.cc
index 6cc451b73c3af758665e3d433523279db6b9c3a3..6c9c1c03b1ea0f0930872221de00198bd7829c28 100644
--- a/chrome/browser/media/media_stream_infobar_delegate.cc
+++ b/chrome/browser/media/media_stream_infobar_delegate.cc
@@ -66,6 +66,14 @@ bool MediaStreamInfoBarDelegate::Create(
return true;
}
+bool MediaStreamInfoBarDelegate::IsRequestingVideoAccess() const {
+ return controller_->HasVideo();
+}
+
+bool MediaStreamInfoBarDelegate::IsRequestingMicrophoneAccess() const {
+ return controller_->HasAudio();
+}
+
MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate(
scoped_ptr<MediaStreamDevicesController> controller)
: ConfirmInfoBarDelegate(),
« no previous file with comments | « chrome/browser/media/media_stream_infobar_delegate.h ('k') | chrome/browser/ui/android/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698