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

Unified Diff: webkit/fileapi/file_system_context.cc

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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: webkit/fileapi/file_system_context.cc
===================================================================
--- webkit/fileapi/file_system_context.cc (revision 82259)
+++ webkit/fileapi/file_system_context.cc (working copy)
@@ -20,17 +20,21 @@
const FilePath& profile_path,
bool is_incognito,
bool allow_file_access,
- bool unlimited_quota)
+ bool unlimited_quota,
+ FileSystemPathManager* path_manager)
: file_message_loop_(file_message_loop),
io_message_loop_(io_message_loop),
special_storage_policy_(special_storage_policy),
allow_file_access_from_files_(allow_file_access),
unlimited_quota_(unlimited_quota),
- path_manager_(new FileSystemPathManager(
- file_message_loop, profile_path, special_storage_policy, is_incognito,
- allow_file_access)),
+ path_manager_(path_manager),
usage_tracker_(new FileSystemUsageTracker(
file_message_loop, profile_path, is_incognito)) {
+ if (!path_manager) {
+ path_manager_.reset(new FileSystemPathManager(
+ file_message_loop, profile_path, special_storage_policy,
+ is_incognito, allow_file_access));
+ }
}
FileSystemContext::~FileSystemContext() {

Powered by Google App Engine
This is Rietveld 408576698