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

Unified Diff: content/shell/browser/layout_test/layout_test_message_filter.cc

Issue 1099943003: Notifications: use LayoutTestPermissionManager to handle permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_midiclientmock
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_notification_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_message_filter.cc
diff --git a/content/shell/browser/layout_test/layout_test_message_filter.cc b/content/shell/browser/layout_test/layout_test_message_filter.cc
index 6b9eaf63a8a76d065c8658b0b387c632df0d7ff1..dd09baa22a2d3cd67c4caa466782fae17739f00e 100644
--- a/content/shell/browser/layout_test/layout_test_message_filter.cc
+++ b/content/shell/browser/layout_test/layout_test_message_filter.cc
@@ -60,10 +60,6 @@ bool LayoutTestMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_ClearAllDatabases,
OnClearAllDatabases)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_SetDatabaseQuota, OnSetDatabaseQuota)
- IPC_MESSAGE_HANDLER(LayoutTestHostMsg_GrantWebNotificationPermission,
- OnGrantWebNotificationPermission)
- IPC_MESSAGE_HANDLER(LayoutTestHostMsg_ClearWebNotificationPermissions,
- OnClearWebNotificationPermissions)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_SimulateWebNotificationClick,
OnSimulateWebNotificationClick)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_AcceptAllCookies, OnAcceptAllCookies)
@@ -110,24 +106,6 @@ void LayoutTestMessageFilter::OnSetDatabaseQuota(int quota) {
storage::QuotaCallback());
}
-void LayoutTestMessageFilter::OnGrantWebNotificationPermission(
- const GURL& origin, bool permission_granted) {
- LayoutTestNotificationManager* manager =
- LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
- if (manager) {
- manager->SetPermission(origin, permission_granted ?
- blink::WebNotificationPermissionAllowed :
- blink::WebNotificationPermissionDenied);
- }
-}
-
-void LayoutTestMessageFilter::OnClearWebNotificationPermissions() {
- LayoutTestNotificationManager* manager =
- LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
- if (manager)
- manager->ClearPermissions();
-}
-
void LayoutTestMessageFilter::OnSimulateWebNotificationClick(
const std::string& title) {
LayoutTestNotificationManager* manager =
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_notification_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698