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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context.h

Issue 145693005: [FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
Index: chrome/browser/sync_file_system/local/local_file_sync_context.h
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context.h b/chrome/browser/sync_file_system/local/local_file_sync_context.h
index e8af9d34e45cf3e6611e93c4daa01dd3c33c7ef4..be97f5dfa92bfd85c3fd53357d1bde1d3b2b10ce 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context.h
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context.h
@@ -34,6 +34,10 @@ class FileSystemContext;
class FileSystemURL;
}
+namespace leveldb {
+class Env;
+}
+
namespace webkit_blob {
class ScopedFile;
}
@@ -72,6 +76,7 @@ class LocalFileSyncContext
HasPendingLocalChangeCallback;
LocalFileSyncContext(const base::FilePath& base_path,
+ leveldb::Env* env_override,
base::SingleThreadTaskRunner* ui_task_runner,
base::SingleThreadTaskRunner* io_task_runner);
@@ -325,6 +330,7 @@ class LocalFileSyncContext
base::File::Error error);
const base::FilePath local_base_path_;
+ leveldb::Env* env_override_;
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698