Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2993)

Unified Diff: chrome/browser/chromeos/fileapi/file_system_backend.cc

Issue 23233002: Whitelist TimeScapes to access restricted native local filesystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after the revert. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/fileapi/file_system_backend.cc
diff --git a/chrome/browser/chromeos/fileapi/file_system_backend.cc b/chrome/browser/chromeos/fileapi/file_system_backend.cc
index f25daa0822bbca76b43c55c6ce4e8508d3339bef..43a62c1f0c7019a2b62d3c84c445059d65aac452 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend.cc
+++ b/chrome/browser/chromeos/fileapi/file_system_backend.cc
@@ -142,6 +142,13 @@ bool FileSystemBackend::IsAccessAllowed(
return false;
std::string extension_id = origin_url.host();
+ // TODO(mtomasz): Temporarily whitelist TimeScapes. Remove this in M-31.
+ // See: crbug.com/271946
+ if (extension_id == "mppoamgbcpnkpacolchbacppkflagjbp" &&
+ url.type() == fileapi::kFileSystemTypeRestrictedNativeLocal) {
+ return true;
+ }
+
// Check first to make sure this extension has fileBrowserHander permissions.
if (!special_storage_policy_->IsFileHandler(extension_id))
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698