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

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

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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.h
===================================================================
--- chrome/browser/media/media_stream_infobar_delegate.h (revision 238220)
+++ chrome/browser/media/media_stream_infobar_delegate.h (working copy)
@@ -22,10 +22,10 @@
virtual ~MediaStreamInfoBarDelegate();
// Handles a permission request (in |request|) for |web_contents|. If this
- // involves prompting the user, creates a media stream infobar delegate, then
- // checks for an existing infobar for |web_contents| and replaces it if found,
- // or just adds the new infobar otherwise. Returns whether an infobar was
- // created.
+ // involves prompting the user, creates a media stream infobar and delegate,
+ // then checks for an existing infobar for |web_contents| and replaces it if
+ // found, or just adds the new infobar otherwise. Returns whether an infobar
+ // was created.
static bool Create(content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback);
@@ -33,8 +33,7 @@
private:
friend class WebRtcTestBase;
- MediaStreamInfoBarDelegate(
- InfoBarService* infobar_service,
+ explicit MediaStreamInfoBarDelegate(
scoped_ptr<MediaStreamDevicesController> controller);
// ConfirmInfoBarDelegate:
« no previous file with comments | « chrome/browser/managed_mode/managed_mode_navigation_observer.cc ('k') | chrome/browser/media/media_stream_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698