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

Unified Diff: chrome/browser/permissions/permission_infobar_delegate.cc

Issue 2555833002: Remove enable_notifications build flag and define (Closed)
Patch Set: Merge Created 4 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/permissions/permission_infobar_delegate.cc
diff --git a/chrome/browser/permissions/permission_infobar_delegate.cc b/chrome/browser/permissions/permission_infobar_delegate.cc
index 33131dcea2560f153be2075c62715165b1f82fa0..3d7ef8212a3b79df1f3af138220e75984ed75828 100644
--- a/chrome/browser/permissions/permission_infobar_delegate.cc
+++ b/chrome/browser/permissions/permission_infobar_delegate.cc
@@ -52,13 +52,11 @@ PermissionInfoBarDelegate::CreateDelegate(
return std::unique_ptr<PermissionInfoBarDelegate>(
new GeolocationInfoBarDelegateAndroid(
requesting_frame, user_gesture, profile, callback));
-#if defined(ENABLE_NOTIFICATIONS)
case content::PermissionType::NOTIFICATIONS:
case content::PermissionType::PUSH_MESSAGING:
return std::unique_ptr<PermissionInfoBarDelegate>(
new NotificationPermissionInfoBarDelegate(
type, requesting_frame, user_gesture, profile, callback));
-#endif // ENABLE_NOTIFICATIONS
case content::PermissionType::MIDI_SYSEX:
return std::unique_ptr<PermissionInfoBarDelegate>(
new MidiPermissionInfoBarDelegateAndroid(
« no previous file with comments | « chrome/browser/permissions/permission_context_base_unittest.cc ('k') | chrome/browser/permissions/permission_request_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698