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

Unified Diff: storage/browser/fileapi/isolated_file_system_backend.cc

Issue 838323003: app_shell: Fix crash on chrome.runtime.getPackageDirectoryEntry for cros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (filesystem) remove spam Created 5 years, 11 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 | « storage/browser/fileapi/isolated_file_system_backend.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/isolated_file_system_backend.cc
diff --git a/storage/browser/fileapi/isolated_file_system_backend.cc b/storage/browser/fileapi/isolated_file_system_backend.cc
index c9b31d3fa04b5f614bbb781f127800f9ce69f4c2..823d40481ae25ba591a357117fe352f598c48695 100644
--- a/storage/browser/fileapi/isolated_file_system_backend.cc
+++ b/storage/browser/fileapi/isolated_file_system_backend.cc
@@ -29,8 +29,12 @@
namespace storage {
-IsolatedFileSystemBackend::IsolatedFileSystemBackend()
- : isolated_file_util_(new AsyncFileUtilAdapter(new LocalFileUtil())),
+IsolatedFileSystemBackend::IsolatedFileSystemBackend(
+ bool use_for_type_native_local,
+ bool use_for_type_platform_app)
+ : use_for_type_native_local_(use_for_type_native_local),
+ use_for_type_platform_app_(use_for_type_platform_app),
+ isolated_file_util_(new AsyncFileUtilAdapter(new LocalFileUtil())),
dragged_file_util_(new AsyncFileUtilAdapter(new DraggedFileUtil())),
transient_file_util_(new AsyncFileUtilAdapter(new TransientFileUtil())) {
}
@@ -44,11 +48,10 @@ bool IsolatedFileSystemBackend::CanHandleType(FileSystemType type) const {
case kFileSystemTypeDragged:
case kFileSystemTypeForTransientFile:
return true;
-#if !defined(OS_CHROMEOS)
case kFileSystemTypeNativeLocal:
+ return use_for_type_native_local_;
case kFileSystemTypeNativeForPlatformApp:
- return true;
-#endif
+ return use_for_type_platform_app_;
default:
return false;
}
« no previous file with comments | « storage/browser/fileapi/isolated_file_system_backend.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698