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

Unified Diff: content/child/notifications/notification_dispatcher.cc

Issue 758603002: Use Mojo Permission Service when requesting Notifications permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_geolocation_follow_up
Patch Set: fixes to pass tests Created 6 years, 1 month 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
« no previous file with comments | « content/browser/permissions/permission_service_impl.cc ('k') | content/common/permission_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/notifications/notification_dispatcher.cc
diff --git a/content/child/notifications/notification_dispatcher.cc b/content/child/notifications/notification_dispatcher.cc
index 9401903333dda9ce8d2c45aea5e9bf05e2c81ca6..a9a5daab224c3c0c887a34a26dd34f90f7f5c38a 100644
--- a/content/child/notifications/notification_dispatcher.cc
+++ b/content/child/notifications/notification_dispatcher.cc
@@ -63,11 +63,7 @@ bool NotificationDispatcher::OnMessageReceived(const IPC::Message& msg) {
}
bool NotificationDispatcher::ShouldHandleMessage(const IPC::Message& msg) {
- // The thread-safe message filter is responsible for handling all the messages
- // except for the routed permission-request-completed message, which will be
- // picked up by the RenderFrameImpl instead.
- return IPC_MESSAGE_CLASS(msg) == PlatformNotificationMsgStart &&
- msg.type() != PlatformNotificationMsg_PermissionRequestComplete::ID;
+ return IPC_MESSAGE_CLASS(msg) == PlatformNotificationMsgStart;
}
} // namespace content
« no previous file with comments | « content/browser/permissions/permission_service_impl.cc ('k') | content/common/permission_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698