Chromium Code Reviews| Index: chrome/browser/chromeos/extensions/file_handler_util.cc |
| diff --git a/chrome/browser/chromeos/extensions/file_handler_util.cc b/chrome/browser/chromeos/extensions/file_handler_util.cc |
| index b6b56e4c97f31656e1a6116e5744107320fc8d2a..a688f78a9a9d2c25f67fa69f2ade85fbade1272e 100644 |
| --- a/chrome/browser/chromeos/extensions/file_handler_util.cc |
| +++ b/chrome/browser/chromeos/extensions/file_handler_util.cc |
| @@ -659,7 +659,9 @@ bool FileTaskExecutor::FileBrowserHasAccessPermissionForFiles( |
| return false; |
| if (!chromeos::CrosMountPointProvider::CanHandleURL(files[i]) || |
| - !external_provider->IsAccessAllowed(files[i])) { |
| + (external_provider->GetPermissionPolicy( |
| + files[i], fileapi::kReadFilePermissions) == |
| + fileapi::FILE_PERMISSION_ALWAYS_DENY)) { |
|
ericu
2013/02/05 21:51:57
This seems potentially more fragile than asking Is
kinuko
2013/02/06 03:36:17
I think actually we should also check ChildProcess
tonibarzic
2013/02/06 06:20:17
yeah, checking ChildProcessSecurityPolicy would pr
kinuko
2013/02/06 09:24:50
Yes, that sounds reasonable to me too. My intentio
ericu
2013/02/11 22:29:17
I don't know about this specific case vs. others,
kinuko
2013/02/12 08:19:52
The primary intention of this series of changes ar
|
| return false; |
| } |
| } |