Set caches directory on Fuchsia (flutter/engine#18321)

This commit is contained in:
George Wright
2020-05-20 11:05:55 -07:00
committed by GitHub
parent 4696f624fd
commit 955906137a
6 changed files with 12 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/file.h"
#include "flutter/fml/paths.h"
namespace fml {
@@ -12,8 +13,7 @@ std::pair<bool, std::string> GetExecutableDirectoryPath() {
}
fml::UniqueFD GetCachesDirectory() {
// Unsupported on this platform.
return {};
return OpenDirectory("/cache", false, fml::FilePermission::kRead);
}
} // namespace paths

View File

@@ -6,7 +6,8 @@
"features": [
"config-data",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",

View File

@@ -6,7 +6,8 @@
"features": [
"config-data",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",

View File

@@ -7,7 +7,8 @@
"config-data",
"deprecated-ambient-replace-as-executable",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",

View File

@@ -7,7 +7,8 @@
"config-data",
"deprecated-ambient-replace-as-executable",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",

View File

@@ -5,7 +5,8 @@
"sandbox": {
"features": [
"vulkan",
"deprecated-ambient-replace-as-executable"
"deprecated-ambient-replace-as-executable",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.semantics.SemanticsManager",