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

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

Issue 1164973003: Add initial support for runtime permissions in android M. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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..c9079fefc4b3c930a68aa29313a75908770211c2 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() {
+ return controller_->HasVideo();
+}
+
+bool MediaStreamInfoBarDelegate::IsRequestingMicrophoneAccess() {
+ return controller_->HasAudio();
+}
+
MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate(
scoped_ptr<MediaStreamDevicesController> controller)
: ConfirmInfoBarDelegate(),

Powered by Google App Engine
This is Rietveld 408576698