Set caches directory on Fuchsia (flutter/engine#18321)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"features": [
|
||||
"config-data",
|
||||
"root-ssl-certificates",
|
||||
"vulkan"
|
||||
"vulkan",
|
||||
"isolated-cache-storage"
|
||||
],
|
||||
"services": [
|
||||
"fuchsia.accessibility.SettingsManager",
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"features": [
|
||||
"config-data",
|
||||
"root-ssl-certificates",
|
||||
"vulkan"
|
||||
"vulkan",
|
||||
"isolated-cache-storage"
|
||||
],
|
||||
"services": [
|
||||
"fuchsia.accessibility.SettingsManager",
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"config-data",
|
||||
"deprecated-ambient-replace-as-executable",
|
||||
"root-ssl-certificates",
|
||||
"vulkan"
|
||||
"vulkan",
|
||||
"isolated-cache-storage"
|
||||
],
|
||||
"services": [
|
||||
"fuchsia.accessibility.SettingsManager",
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"config-data",
|
||||
"deprecated-ambient-replace-as-executable",
|
||||
"root-ssl-certificates",
|
||||
"vulkan"
|
||||
"vulkan",
|
||||
"isolated-cache-storage"
|
||||
],
|
||||
"services": [
|
||||
"fuchsia.accessibility.SettingsManager",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user