Index: chrome/common/extensions/permissions/api_permission.cc |
diff --git a/chrome/common/extensions/permissions/api_permission.cc b/chrome/common/extensions/permissions/api_permission.cc |
index 47216a11e35e708c4efd60d04fa03fbba96109ae..6f88ecb76e2bfb82fc4fa853efe27cc2488ed27b 100644 |
--- a/chrome/common/extensions/permissions/api_permission.cc |
+++ b/chrome/common/extensions/permissions/api_permission.cc |
@@ -165,6 +165,9 @@ void APIPermission::RegisterAllPermissions( |
{ kVideoCapture, "videoCapture", kFlagNone, |
IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, |
PermissionMessage::kVideoCapture }, |
+ // "fileSystem" has no permission string because read-only access is only |
+ // granted after the user has been shown a file chooser dialog and selected |
+ // a file. Selecting the file is considered consent to read it. |
{ kFileSystem, "fileSystem" }, |
{ kFileSystemWrite, "fileSystemWrite", kFlagNone, |
IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_WRITE, |