summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2015-01-12 16:03:21 +0100
committerMichael BrĂ¼ning <michael.bruning@theqtcompany.com>2015-01-13 10:49:44 +0100
commitbc79678dfb91648d1d31b15732f31739abe5df55 (patch)
treec43aae96e4f339a5fcd69218f6ae7c298d56d5e6 /src/core/content_browser_client_qt.cpp
parente6a74159cebdbfec575f40469c216c90ee8651c1 (diff)
Do not allow desktop notifications
The default implementation of CheckDesktopNotificationPermission always allows desktop notifications. Until we have implemented them we want them always disabled. If we do not, we will end up with invalid cancel notification Closures being called. Task-number: QTBUG-41893 Change-Id: I609222d538ba6f3d1ac264eacd692211e4e653a7 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index 536b6ffd5..c1dc696bd 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -389,6 +389,11 @@ void ContentBrowserClientQt::RequestGeolocationPermission(content::WebContents *
contentsDelegate->requestGeolocationPermission(requestingFrameOrigin, resultCallback, cancelCallback);
}
+blink::WebNotificationPresenter::Permission ContentBrowserClientQt::CheckDesktopNotificationPermission(const GURL&, content::ResourceContext *, int )
+{
+ return blink::WebNotificationPresenter::PermissionDenied;
+}
+
content::LocationProvider *ContentBrowserClientQt::OverrideSystemLocationProvider()
{
#ifdef QT_USE_POSITIONING