summaryrefslogtreecommitdiff
path: root/src/core/profile_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-02-03 14:23:23 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-03-29 14:52:16 +0200
commitdb59a3096b4f44aaacabdc5b455fbc0a3a6b8fb1 (patch)
treec51729c2139b69f8a1c1d43a1e303b1a09de50b6 /src/core/profile_qt.cpp
parent81dfb46bd381cbb0d5d1071c418846ab3ed97a9a (diff)
downloadqtwebengine-db59a3096b4f44aaacabdc5b455fbc0a3a6b8fb1.tar.gz
Adaptations for Chrome 96
Change-Id: I40039658762b8788a0be57bd186efab71f3e4448 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/profile_qt.cpp')
-rw-r--r--src/core/profile_qt.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/core/profile_qt.cpp b/src/core/profile_qt.cpp
index ae210b6c8..71198b2fc 100644
--- a/src/core/profile_qt.cpp
+++ b/src/core/profile_qt.cpp
@@ -262,29 +262,11 @@ const PrefServiceAdapter &ProfileQt::prefServiceAdapter() const
return m_prefServiceAdapter;
}
-
-content::PlatformNotificationService *ProfileQt::platformNotificationService()
+content::PlatformNotificationService *ProfileQt::GetPlatformNotificationService()
{
if (!m_platformNotificationService)
m_platformNotificationService = std::make_unique<PlatformNotificationServiceQt>(this);
return m_platformNotificationService.get();
}
-bool ProfileQt::ensureDirectoryExists()
-{
- const base::FilePath &path = GetPath();
-
- if (base::PathExists(path))
- return true;
-
- base::File::Error error;
- if (base::CreateDirectoryAndGetError(path, &error))
- return true;
-
- std::string errorstr = base::File::ErrorToString(error);
- qWarning("Cannot create directory %s. Error: %s.", path.AsUTF8Unsafe().c_str(),
- errorstr.c_str());
- return false;
-}
-
} // namespace QtWebEngineCore