summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-09-20 09:53:56 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-09-20 10:43:27 +0000
commit4b9599123f636b56065b87ba670a8ae586c85557 (patch)
tree105c5beb3e46f5374e4afc4eca2ebcf7bc49692c /src/core/browser_context_qt.cpp
parent37d03fb2dbeb1dcc4793bc735abb742ef481dd3e (diff)
Make BrowserContextQt a Chrome Profile
Expose the preferences as a Profile class, this will make it possible to use more Chromium code unmodified. Change-Id: If49b5239c573391f8e25cfadc18240ed666974ae Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/browser_context_qt.cpp')
-rw-r--r--src/core/browser_context_qt.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp
index bc5341f46..5f544ab86 100644
--- a/src/core/browser_context_qt.cpp
+++ b/src/core/browser_context_qt.cpp
@@ -97,6 +97,16 @@ BrowserContextQt::~BrowserContextQt()
content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE, resourceContext.release());
}
+PrefService* BrowserContextQt::GetPrefs()
+{
+ return m_prefService.get();
+}
+
+const PrefService* BrowserContextQt::GetPrefs() const
+{
+ return m_prefService.get();
+}
+
base::FilePath BrowserContextQt::GetPath() const
{
return toFilePath(m_adapter->dataPath());