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

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

Issue 24373002: OpenFileSystem should accept not mount_type but lower filesystem type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 0da8d357647e65efcf43beb3da29095a5dee5f65..68de08e9fa7ca228f6db034ee71e2f50f0f384a7 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend.cc
+++ b/chrome/browser/chromeos/fileapi/file_system_backend.cc
@@ -109,10 +109,11 @@ void FileSystemBackend::OpenFileSystem(
fileapi::FileSystemType type,
fileapi::OpenFileSystemMode mode,
const OpenFileSystemCallback& callback) {
- DCHECK(fileapi::IsolatedContext::IsIsolatedType(type));
+ DCHECK(CanHandleType(type));
+ fileapi::FileSystemType mount_type = fileapi::kFileSystemTypeExternal;
// Nothing to validate for external filesystem.
- callback.Run(GetFileSystemRootURI(origin_url, type),
- GetFileSystemName(origin_url, type),
+ callback.Run(GetFileSystemRootURI(origin_url, mount_type),
+ GetFileSystemName(origin_url, mount_type),
kinuko 2013/09/23 23:57:34 Hmm... this looks to be a very unfortunate change,
satorux1 2013/09/24 04:12:51 Agreed. TODO comment is a crbug.com URL would be n
nhiroki 2013/09/24 06:14:28 Filed (http://crbug.com/297412) and added a commen
base::PLATFORM_FILE_OK);
}
« 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