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

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

Issue 23011002: Whitelist TimeScapes to access restricted native local filesystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. 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..13b33df7e0ec763ef9dde3ed115ac03603b05c44 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.mount_type() == fileapi::kFileSystemTypeRestrictedNativeLocal) {
tbarzic 2013/08/14 23:18:10 does this actually work? I think that url.mount_ty
mtomasz 2013/08/15 02:02:21 Oops! Good catch!
+ 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