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

Unified Diff: content/browser/fileapi/fileapi_message_filter.cc

Issue 16158004: iTunes file util and data provider for media galleries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo incorrect fix Created 7 years, 6 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
Index: content/browser/fileapi/fileapi_message_filter.cc
diff --git a/content/browser/fileapi/fileapi_message_filter.cc b/content/browser/fileapi/fileapi_message_filter.cc
index d9af761e796a2452f8569de248d347c50d86f2b2..326464c19f2c74a09ed5e061fd193d847e6f9207 100644
--- a/content/browser/fileapi/fileapi_message_filter.cc
+++ b/content/browser/fileapi/fileapi_message_filter.cc
@@ -757,10 +757,12 @@ void FileAPIMessageFilter::DidCreateSnapshot(
// when the filesystem has been granted permissions. This happens with:
// - Drive filesystems
// - Picasa filesystems
+ // - iTunes filesystems
DCHECK(snapshot_file.get() ||
fileapi::SandboxMountPointProvider::IsSandboxType(url.type()) ||
url.type() == fileapi::kFileSystemTypeDrive ||
- url.type() == fileapi::kFileSystemTypePicasa);
+ url.type() == fileapi::kFileSystemTypePicasa ||
+ url.type() == fileapi::kFileSystemTypeItunes);
kinuko 2013/06/07 05:45:13 Hmm, this part seems to need some cleanup...
ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile(
process_id_, platform_path);
if (snapshot_file.get()) {

Powered by Google App Engine
This is Rietveld 408576698