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

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

Issue 740543003: Remove the old Web Notification code-path (Chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unittest references 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
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 970334f9c169a4b0bd9caa357757a4fa3a685a33..256b8e63c434a89c0f3c2cbaaab6f4ab044dd1f9 100644
--- a/content/shell/browser/layout_test/layout_test_message_filter.cc
+++ b/content/shell/browser/layout_test/layout_test_message_filter.cc
@@ -55,8 +55,6 @@ bool LayoutTestMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_ClearAllDatabases,
OnClearAllDatabases)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_SetDatabaseQuota, OnSetDatabaseQuota)
- IPC_MESSAGE_HANDLER(LayoutTestHostMsg_CheckWebNotificationPermission,
- OnCheckWebNotificationPermission)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_GrantWebNotificationPermission,
OnGrantWebNotificationPermission)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_ClearWebNotificationPermissions,
@@ -105,16 +103,6 @@ void LayoutTestMessageFilter::OnSetDatabaseQuota(int quota) {
storage::QuotaCallback());
}
-void LayoutTestMessageFilter::OnCheckWebNotificationPermission(
- const GURL& origin, int* result) {
- LayoutTestNotificationManager* manager =
- LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
- if (manager)
- *result = manager->CheckPermission(origin);
- else
- *result = blink::WebNotificationPermissionAllowed;
-}
-
void LayoutTestMessageFilter::OnGrantWebNotificationPermission(
const GURL& origin, bool permission_granted) {
LayoutTestNotificationManager* manager =

Powered by Google App Engine
This is Rietveld 408576698