Index: chrome/browser/content_settings/permission_queue_controller.cc |
diff --git a/chrome/browser/content_settings/permission_queue_controller.cc b/chrome/browser/content_settings/permission_queue_controller.cc |
index dd3de069fdaa76a0366280b21d7d206810142879..bd97b776b13eb31516d6fc2d3ac2866d8d326d96 100644 |
--- a/chrome/browser/content_settings/permission_queue_controller.cc |
+++ b/chrome/browser/content_settings/permission_queue_controller.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/browser/geolocation/geolocation_infobar_delegate.h" |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/browser/media/midi_permission_infobar_delegate.h" |
+#include "chrome/browser/notifications/desktop_notification_infobar_delegate.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/services/gcm/push_messaging_infobar_delegate.h" |
#include "chrome/browser/tab_contents/tab_util.h" |
@@ -112,6 +113,13 @@ void PermissionQueueController::PendingInfobarRequest::CreateInfoBar( |
GetInfoBarService(id_), controller, id_, requesting_frame_, |
display_languages, accept_button_label_); |
break; |
+#if defined(ENABLE_NOTIFICATIONS) |
+ case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: |
+ infobar_ = DesktopNotificationInfoBarDelegate::Create( |
+ GetInfoBarService(id_), controller, id_, requesting_frame_, |
+ display_languages); |
+ break; |
+#endif // ENABLE_NOTIFICATIONS |
case CONTENT_SETTINGS_TYPE_MIDI_SYSEX: |
infobar_ = MidiPermissionInfoBarDelegate::Create( |
GetInfoBarService(id_), controller, id_, requesting_frame_, |