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

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

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 10 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 7db4ea4bcca23f3af3848f7a6bf0ed282ce6a71f..d6abff7abbb162b174eda22fc92851d607d96021 100644
--- a/chrome/browser/media/media_stream_infobar_delegate.cc
+++ b/chrome/browser/media/media_stream_infobar_delegate.cc
@@ -82,16 +82,16 @@ void MediaStreamInfoBarDelegate::InfoBarDismissed() {
controller_->Deny(false, content::MEDIA_DEVICE_PERMISSION_DISMISSED);
}
+infobars::InfoBarDelegate::Type
+MediaStreamInfoBarDelegate::GetInfoBarType() const {
+ return PAGE_ACTION_TYPE;
+}
+
int MediaStreamInfoBarDelegate::GetIconID() const {
return controller_->HasVideo() ?
IDR_INFOBAR_MEDIA_STREAM_CAMERA : IDR_INFOBAR_MEDIA_STREAM_MIC;
}
-infobars::InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType()
- const {
- return PAGE_ACTION_TYPE;
-}
-
MediaStreamInfoBarDelegate*
MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() {
return this;

Powered by Google App Engine
This is Rietveld 408576698