| Index: extensions/common/permissions/extensions_api_permissions.cc
|
| diff --git a/extensions/common/permissions/extensions_api_permissions.cc b/extensions/common/permissions/extensions_api_permissions.cc
|
| index e9eba1986fb51c3171f8858fc6b047e77e29edb7..c180c43dcae43f30ef938d747d972a996b792e44 100644
|
| --- a/extensions/common/permissions/extensions_api_permissions.cc
|
| +++ b/extensions/common/permissions/extensions_api_permissions.cc
|
| @@ -58,6 +58,19 @@ ExtensionsAPIPermissions::GetAllPermissions() const {
|
| {APIPermission::kExternallyConnectableAllUrls,
|
| "externally_connectable.all_urls"},
|
| {APIPermission::kFullscreen, "app.window.fullscreen"},
|
| +
|
| + // The permission string for "fileSystem" is only shown when
|
| + // "write" or "directory" is present. Read-only access is only
|
| + // granted after the user has been shown a file or directory
|
| + // chooser dialog and selected a file or directory. Selecting
|
| + // the file or directory is considered consent to read it.
|
| + {APIPermission::kFileSystem, "fileSystem"},
|
| + {APIPermission::kFileSystemDirectory, "fileSystem.directory"},
|
| + {APIPermission::kFileSystemRequestFileSystem,
|
| + "fileSystem.requestFileSystem"},
|
| + {APIPermission::kFileSystemRetainEntries, "fileSystem.retainEntries"},
|
| + {APIPermission::kFileSystemWrite, "fileSystem.write"},
|
| +
|
| {APIPermission::kHid, "hid"},
|
| {APIPermission::kImeWindowEnabled, "app.window.ime"},
|
| {APIPermission::kOverrideEscFullscreen,
|
|
|