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

Unified Diff: webkit/fileapi/file_system_context.cc

Issue 6286038: Add initial code to do filename munging in the FileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 74905)
+++ webkit/fileapi/file_system_context.cc (working copy)
@@ -6,9 +6,11 @@
#include "base/file_util.h"
#include "base/message_loop_proxy.h"
+#include "webkit/fileapi/file_system_file_util_proxy.h"
#include "webkit/fileapi/file_system_path_manager.h"
#include "webkit/fileapi/file_system_quota_manager.h"
#include "webkit/fileapi/file_system_usage_tracker.h"
+#include "webkit/fileapi/obfuscated_file_util.h"
namespace fileapi {
@@ -18,7 +20,8 @@
const FilePath& profile_path,
bool is_incognito,
bool allow_file_access,
- bool unlimited_quota)
+ bool unlimited_quota,
+ bool obfuscate)
: file_message_loop_(file_message_loop),
io_message_loop_(io_message_loop),
path_manager_(new FileSystemPathManager(
@@ -27,6 +30,10 @@
allow_file_access, unlimited_quota)),
usage_tracker_(new FileSystemUsageTracker(
file_message_loop, profile_path, is_incognito)) {
+ if (obfuscate)
+ file_system_file_util_ = ObfuscatedFileUtil::GetInstance();
+ else
+ file_system_file_util_ = FileSystemFileUtil::GetInstance();
}
FileSystemContext::~FileSystemContext() {

Powered by Google App Engine
This is Rietveld 408576698