Index: content/browser/renderer_host/render_view_host_impl.cc |
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
index b19cd19ec43d791f1fc238f5095f7ada8d5a0f1e..92d4fa5e4f0068d83f1f9f4accf42a9bce69fefc 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -2203,15 +2203,6 @@ void RenderViewHostImpl::OnRequestDesktopNotificationPermission( |
void RenderViewHostImpl::OnShowDesktopNotification( |
const ShowDesktopNotificationHostMsgParams& params) { |
- // Disallow HTML notifications from javascript: and file: schemes as this |
- // allows unwanted cross-domain access. |
- GURL url = params.contents_url; |
- if (params.is_html && |
- (url.SchemeIs(kJavaScriptScheme) || |
- url.SchemeIs(chrome::kFileScheme))) { |
- return; |
- } |
- |
GetContentClient()->browser()->ShowDesktopNotification( |
params, GetProcess()->GetID(), GetRoutingID(), false); |
} |