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

Unified Diff: chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 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/ui/content_settings/media_setting_changed_infobar_delegate.cc
diff --git a/chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc b/chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc
index ee7d1b4e9f4d11b8afb909accc02ec9e3425700d..a1a30fd738178b32505b494b8d424dad07cdefb1 100644
--- a/chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc
+++ b/chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "chrome/browser/infobars/infobar.h"
+#include "chrome/browser/infobars/infobar_manager.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
@@ -16,13 +17,13 @@
void MediaSettingChangedInfoBarDelegate::Create(
InfoBarService* infobar_service) {
infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate>(
- new MediaSettingChangedInfoBarDelegate())));
+ scoped_ptr<ConfirmInfoBarDelegate>(new MediaSettingChangedInfoBarDelegate(
+ infobar_service->web_contents()))));
}
-MediaSettingChangedInfoBarDelegate::MediaSettingChangedInfoBarDelegate()
- : ConfirmInfoBarDelegate() {
-}
+MediaSettingChangedInfoBarDelegate::MediaSettingChangedInfoBarDelegate(
+ content::WebContents* web_contents)
+ : ContentConfirmInfoBarDelegate(web_contents) {}
MediaSettingChangedInfoBarDelegate::~MediaSettingChangedInfoBarDelegate() {
}

Powered by Google App Engine
This is Rietveld 408576698