From 17eefd8f92adb71da25b8c9d67b3e973684a8bf9 Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@qt.io>
Date: Tue, 20 Mar 2018 11:53:08 +0100
Subject: [PATCH] Improve QWebEngineCookieStore documentation

Change-Id: If11154d716b2ea98cc6b0b07c4fe2501fe27dcdb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
---
 src/core/api/qwebenginecookiestore.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/api/qwebenginecookiestore.cpp b/src/core/api/qwebenginecookiestore.cpp
index c87cb12bf..4ef512d62 100644
--- a/src/core/api/qwebenginecookiestore.cpp
+++ b/src/core/api/qwebenginecookiestore.cpp
@@ -342,7 +342,7 @@ void QWebEngineCookieStore::deleteAllCookies()
     The following code snippet illustrates how to set a cookie filter:
 
     \code
-    profile->setCookieFilter(
+    profile->cookieStore()->setCookieFilter(
         [&allowThirdPartyCookies](const QWebEngineCookieStore::FilterRequest &request)
         { return !request.thirdParty || allowThirdPartyCookies; }
     );
@@ -396,7 +396,7 @@ void QWebEngineCookieStore::setCookieFilter(std::function<bool(const FilterReque
 
 /*!
     \variable QWebEngineCookieStore::FilterRequest::origin
-    \brief The URL of the script or content accessing a cookie
+    \brief The URL of the script or content accessing a cookie.
 
     Can be used to white-list or black-list third-party cookie access
     for specific services.
@@ -406,7 +406,7 @@ void QWebEngineCookieStore::setCookieFilter(std::function<bool(const FilterReque
 
 /*!
     \variable QWebEngineCookieStore::FilterRequest::thirdParty
-    \brief Whether this is considered a third-party access
+    \brief Whether this is considered a third-party access.
 
     This is calculated by comparing FilterRequest::origin and FilterRequest::firstPartyUrl and
     checking if they share a common origin that is not a top-domain (like .com or .co.uk),
-- 
GitLab