summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-04-06 15:46:44 +0200
committerMichal Klocek <michal.klocek@qt.io>2022-04-22 12:16:31 +0000
commit599a6221a4b3e74c09a5e0d2889b02d88ff16d45 (patch)
tree14ce13dd5c28ff2e4387f350b31049188f9de020
parent8c647adb6adbbc53a34f62a3e49f9b904786543d (diff)
downloadqtwebengine-chromium-599a6221a4b3e74c09a5e0d2889b02d88ff16d45.tar.gz
Minor. Use FilePath directly for qt sandbox path
Change-Id: I27da11d1b47b13c2dec7093ea573b9afc1d8505d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--chromium/content/browser/sandbox_parameters_mac.mm7
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/content/browser/sandbox_parameters_mac.mm b/chromium/content/browser/sandbox_parameters_mac.mm
index 7373a8783a8..cea18a664de 100644
--- a/chromium/content/browser/sandbox_parameters_mac.mm
+++ b/chromium/content/browser/sandbox_parameters_mac.mm
@@ -40,7 +40,7 @@
namespace content {
#if defined(TOOLKIT_QT)
-std::string getQtPrefix();
+base::FilePath getSandboxPath();
#endif
namespace {
@@ -133,9 +133,8 @@ void SetupCommonSandboxParameters(sandbox::SeatbeltExecClient* client) {
CHECK(client->SetParameter(sandbox::policy::kParamOsVersion, GetOSVersion()));
#if defined(TOOLKIT_QT)
- // Allow read access to files under the Qt Prefix.
- const std::string qt_prefix_path_string = getQtPrefix();
- const base::FilePath qt_prefix_path = base::FilePath(qt_prefix_path_string);
+ // Allow read access to files under the Qt path.
+ const base::FilePath qt_prefix_path = getSandboxPath();
const std::string qt_prefix_path_canonical =
sandbox::policy::GetCanonicalPath(qt_prefix_path).value();
CHECK(client->SetParameter(sandbox::policy::kParamQtPrefixPath,