Index: content/shell/browser/layout_test/layout_test_content_browser_client.cc |
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc |
index b4b2b08023aaf4608d4a8d38596164887c54e25b..070d6068125e77077ed6d6d806659005d4e48770 100644 |
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc |
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc |
@@ -39,8 +39,7 @@ void RequestDesktopNotificationPermissionOnIO( |
LayoutTestContentBrowserClient::LayoutTestContentBrowserClient() { |
DCHECK(!g_layout_test_browser_client); |
- layout_test_notification_manager_.reset( |
- new LayoutTestNotificationManager()); |
+ layout_test_notification_manager_.reset(new LayoutTestNotificationManager()); |
g_layout_test_browser_client = this; |
} |
@@ -98,26 +97,9 @@ void LayoutTestContentBrowserClient::RequestPermission( |
result_callback); |
} |
-blink::WebNotificationPermission |
-LayoutTestContentBrowserClient::CheckDesktopNotificationPermission( |
- const GURL& source_url, |
- ResourceContext* context, |
- int render_process_id) { |
- LayoutTestNotificationManager* manager = GetLayoutTestNotificationManager(); |
- if (manager) |
- return manager->CheckPermission(source_url); |
- |
- return blink::WebNotificationPermissionAllowed; |
-} |
- |
-void LayoutTestContentBrowserClient::ShowDesktopNotification( |
- const ShowDesktopNotificationHostMsgParams& params, |
- BrowserContext* browser_context, |
- int render_process_id, |
- scoped_ptr<DesktopNotificationDelegate> delegate, |
- base::Closure* cancel_callback) { |
- if (auto* manager = GetLayoutTestNotificationManager()) |
- manager->Show(params, delegate.Pass(), cancel_callback); |
+PlatformNotificationService* |
+LayoutTestContentBrowserClient::GetPlatformNotificationService() { |
+ return layout_test_notification_manager_.get(); |
} |
} // namespace content |