summaryrefslogtreecommitdiffstats
path: root/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/services/gcm/push_messaging_infobar_delegate.cc')
-rw-r--r--chrome/browser/services/gcm/push_messaging_infobar_delegate.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc b/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
index 454cb64..68a3978 100644
--- a/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
+++ b/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
@@ -18,20 +18,22 @@ infobars::InfoBar* PushMessagingInfoBarDelegate::Create(
PermissionQueueController* controller,
const PermissionRequestID& id,
const GURL& requesting_frame,
- const std::string& display_languages) {
+ const std::string& display_languages,
+ ContentSettingsType type) {
DCHECK(infobar_service);
DCHECK(controller);
return infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
scoped_ptr<ConfirmInfoBarDelegate>(new PushMessagingInfoBarDelegate(
- controller, id, requesting_frame, display_languages))));
+ controller, id, requesting_frame, display_languages, type))));
}
PushMessagingInfoBarDelegate::PushMessagingInfoBarDelegate(
PermissionQueueController* controller,
const PermissionRequestID& id,
const GURL& requesting_frame,
- const std::string& display_languages)
- : PermissionInfobarDelegate(controller, id, requesting_frame),
+ const std::string& display_languages,
+ ContentSettingsType type)
+ : PermissionInfobarDelegate(controller, id, requesting_frame, type),
requesting_origin_(requesting_frame.GetOrigin()),
display_languages_(display_languages) {
}