diff options
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 82a6872a0..709000c10 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -77,6 +77,7 @@ #include "type_conversion.h" #include "surface_factory_qt.h" #include "web_engine_library_info.h" +#include "web_engine_visited_links_manager.h" #include <QGuiApplication> #include <QStringList> #include <QVector> @@ -109,6 +110,11 @@ scoped_refptr<WebEngineContext> WebEngineContext::current() return sContext; } +WebEngineVisitedLinksManager *WebEngineContext::visitedLinksManager() +{ + return m_visitedLinksManager.get(); +} + #ifndef CHROMIUM_VERSION #error Chromium version should be defined at gyp-time. Something must have gone wrong #define CHROMIUM_VERSION // This is solely to keep Qt Creator happy. @@ -204,4 +210,7 @@ WebEngineContext::WebEngineContext() // thread to avoid a thread check assertion in its constructor when it // first gets referenced on the IO thread. MediaCaptureDevicesDispatcher::GetInstance(); + + // Ensure we have a VisitedLinksMaster instance up and running + m_visitedLinksManager.reset(new WebEngineVisitedLinksManager); } |